-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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 flags on sub-commands #6640
Labels
help wanted
Seeking public contribution on this issue
kind/enhancement
A net-new feature or improvement to an existing feature
topic/docs-ipfs
Topic docs-ipfs
Milestone
Comments
Stebalien
added
kind/enhancement
A net-new feature or improvement to an existing feature
topic/docs-ipfs
Topic docs-ipfs
help wanted
Seeking public contribution on this issue
labels
Sep 12, 2019
eugene-babichenko
added a commit
to eugene-babichenko/go-ipfs-cmds
that referenced
this issue
Oct 15, 2019
This helps to understand which options are available for the given subcommand without calling help for parent commands by providing more informative output. Resolves ipfs/kubo#6640
Just added a pull request that should resolve this issue. |
eugene-babichenko
added a commit
to eugene-babichenko/go-ipfs-cmds
that referenced
this issue
Oct 16, 2019
Introduce the --help-all flag as specified in ipfs/kubo#6640. This flag allows to call more verbose help only when it is necessary.
jbouwman
pushed a commit
to jbouwman/go-ipfs-cmds
that referenced
this issue
Aug 19, 2021
Several open issues mention problems with interaction of the global `--encoding=` flag and the Encoders and PostRun fields of command structs. This branch contains experimental refactors that explore approaches to consistent command execution patterns across offline, online and http modes. Specific tickets: - ipfs/kubo#7050 json encoding for `ls` - ipfs/kubo#1121 json encoding for `add` - ipfs/kubo#5594 json encoding for `stats bw` - ipfs#115 postrun design Possibly related: - ipfs/kubo#6640 global flags on subcommands Incomplete PRs: - ipfs/kubo#5620 json for 'stat'
@jbouwman @Stebalien : is it correct to say that ipfs/go-ipfs-cmds#215 fixes this issue? |
No, these are two different things. The PR to fix this was ipfs/go-ipfs-cmds#179 (but that, unfortunately, needed some work to get into a mergable state). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
help wanted
Seeking public contribution on this issue
kind/enhancement
A net-new feature or improvement to an existing feature
topic/docs-ipfs
Topic docs-ipfs
Global flags (flags on the root
ipfs
commands) are now documented inipfs --help
. However, they aren't documented in, e.g.,ipfs add --help
.Given that command help is already pretty long, we should probably shouldn't just copy the documentation by default. Instead, we should consider adding a section that lists parent commands that define their own options. For example, given
ipfs files ls --help
, we should extend the options section as follows.However, if the user specifies
ipfs files ls --help-all
, we should include the options directly:Picks up where #4432 left off.
The text was updated successfully, but these errors were encountered: