Skip to content

V3: Subcommands do not display help for GLOBAL OPTIONS #2076

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

Open
seanamos opened this issue Mar 17, 2025 · 0 comments
Open

V3: Subcommands do not display help for GLOBAL OPTIONS #2076

seanamos opened this issue Mar 17, 2025 · 0 comments
Labels
area/v2 relates to / is being considered for v2 kind/bug describes or fixes a bug status/triage maintainers still need to look into this

Comments

@seanamos
Copy link

seanamos commented Mar 17, 2025

Version: 706f78e

My initial look for a the cause is that the default SubcommandHelpTemplate does not contain:

{{if .VisiblePersistentFlags}}

GLOBAL OPTIONS:{{template "visiblePersistentFlagTemplate" .}}{{end}}

See CommandHelpTemplate where this is implemented.

@seanamos seanamos added area/v2 relates to / is being considered for v2 kind/bug describes or fixes a bug status/triage maintainers still need to look into this labels Mar 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/v2 relates to / is being considered for v2 kind/bug describes or fixes a bug status/triage maintainers still need to look into this
Projects
None yet
Development

No branches or pull requests

1 participant