[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document global options (-r, --enc and --timeout) #4479

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

keks
Copy link
Contributor
@keks keks commented Dec 11, 2017

Closes #4432.

Is this what you had in mind or do you want more detail?

License: MIT
Signed-off-by: <keks@cryptoscope.co>
@keks keks requested review from a user and kevina December 11, 2017 17:20
@ghost ghost assigned keks Dec 11, 2017
@ghost ghost added the status/in-progress In progress label Dec 11, 2017
@ghost
Copy link
ghost commented Dec 11, 2017

Ideally they'd also show up in the block below that summary line:

OPTIONS

  -c,   --config string - Path to the configuration file to use.
  -D,   --debug  bool   - Operate in debug mode.
  --help         bool   - Show the full command help text.
  -h             bool   - Show a short version of the command help text.
  -L,   --local  bool   - Run the command locally, instead of using the daemon.
  --api          string - Use a specific API instance (defaults to /ip4/127.0.0.1/tcp/5001).

These ^ are the global options that have been documented so far.

@kevina
Copy link
Contributor
kevina commented Dec 12, 2017

@keks is there a reason we don't list these options under the Root cmds.Command in core/commands/root.go (here https://github.com/ipfs/go-ipfs/blob/master/core/commands/root.go#L87)

Copy link
Contributor
@kevina kevina left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These options should also be listed under the Root cmds.Command in core/commands/root.go (here https://github.com/ipfs/go-ipfs/blob/master/core/commands/root.go#L87) unless there is a good reason not to.

If I understand how things work this should add them under the summary as @lgierth requested.

@whyrusleeping
Copy link
Member

@magik6k do you think you could handle getting this one ready to go?

@Kubuxu Kubuxu removed the status/in-progress In progress label Mar 9, 2018
@magik6k magik6k self-assigned this Mar 9, 2018
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
@keks keks requested a review from Kubuxu as a code owner March 9, 2018 21:21
@ghost ghost added the status/in-progress In progress label Mar 9, 2018
@magik6k
Copy link
Member
magik6k commented Mar 9, 2018

Looks like the options are now documented in ipfs --help, I changed the synopsis to reflect those

@momack2 momack2 added this to In Progress in ipfs/go-ipfs May 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
No open projects
ipfs/go-ipfs
In Progress
Development

Successfully merging this pull request may close these issues.

Document cmdkit's global options
6 participants