Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

cli: doc: OPTIONS output not working #331

Closed
@RichardLitt

Description

@RichardLitt

When I run the --help command in the CLI for js-ipfs commands, I get the following:

$ node src/cli/bin.js id --help
Usage: bin.js id [OPTIONS]

  Shows IPFS Node ID info

What does [OPTIONS] mean? Shouldn't it show the options? Let's look at id.js:

module.exports = Command.extend({
  desc: 'Shows IPFS Node ID infos',

  options: {
    format: {
      alias: 'f',
      type: 'string'
    }
  },

  run: (name) => {
    ...
  }
})

Why isn't [--format | -f] output?

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions