Skip to content

fix: show global options in subcommand help#327

Draft
lidel wants to merge 1 commit intomasterfrom
fix/show-global-options-in-subcommand-help
Draft

fix: show global options in subcommand help#327
lidel wants to merge 1 commit intomasterfrom
fix/show-global-options-in-subcommand-help

Conversation

@lidel
Copy link
Member

@lidel lidel commented Mar 17, 2026

  • Fixes Document global flags on sub-commands kubo#6640
    • add collectGlobalOptions() to gather ancestor options via Resolve()
    • render GLOBAL OPTIONS section in long help for non-root commands
    • include global options in synopsis line
    • add "Use ' --help' for global options." hint in short help
    • deduplicate options already defined on the leaf command

TODO

Fixes ipfs/kubo#6640

- add collectGlobalOptions() to gather ancestor options via Resolve()
- render GLOBAL OPTIONS section in long help for non-root commands
- include global options in synopsis line
- add "Use '<root> --help' for global options." hint in short help
- deduplicate options already defined on the leaf command
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document global flags on sub-commands

1 participant