From 478df19ecd0c577999f7deb81002788a79f69af3 Mon Sep 17 00:00:00 2001 From: "M. J. Fromberger" Date: Tue, 10 Sep 2024 20:51:09 -0700 Subject: [PATCH] Revert "Print short help for --help, rather than long." This reverts commit df41502623a201d3f0929e8dfdc65019b74c91c3. Asking for --help specifically should still print full help. Only falling off the end should be short, and that is already handled in Run. --- command.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command.go b/command.go index edbb016..7d3976d 100644 --- a/command.go +++ b/command.go @@ -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 }