Skip to content

Ensure that gh <command> -h is equivalent to --help#574

Merged
mislav merged 1 commit into
masterfrom
help-flag
Mar 3, 2020
Merged

Ensure that gh <command> -h is equivalent to --help#574
mislav merged 1 commit into
masterfrom
help-flag

Conversation

@mislav

@mislav mislav commented Mar 3, 2020

Copy link
Copy Markdown
Contributor

This compensates for what appears to be a bug in Cobra, which only handles pflag.ErrHelp unless the error is wrapped. It also might be that Cobra doesn't recognize Go 1.13-style error wrapping.

Closes #565

This compensates for what appears to be a bug in Cobra, which only
handles `pflag.ErrHelp` unless the error is wrapped. It also might be
that Cobra doesn't recognize Go 1.13-style error wrapping.
@mislav mislav merged commit 2324531 into master Mar 3, 2020
@mislav mislav deleted the help-flag branch March 3, 2020 20:57
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.

2 participants