Skip to content

Commit

Permalink
Revert "Print short help for --help, rather than long."
Browse files Browse the repository at this point in the history
This reverts commit df41502.

Asking for --help specifically should still print full help.
Only falling off the end should be short, and that is already handled in Run.
  • Loading branch information
creachadair committed Sep 11, 2024
1 parent 74b28f9 commit 478df19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion command.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ func (e *Env) parseFlags(rawArgs []string) error {
}
err := e.Command.Flags.Parse(toParse)
if errors.Is(err, flag.ErrHelp) {
return printShortHelp(e)
return printLongHelp(e, nil)
} else if err != nil {
return err
}
Expand Down

0 comments on commit 478df19

Please sign in to comment.