File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -479,7 +479,7 @@ func (inv *Invocation) run(state *runState) error {
479479
480480 if inv .Command .Handler == nil || errors .Is (state .flagParseErr , pflag .ErrHelp ) {
481481 if inv .Command .HelpHandler == nil {
482- return defaultHelpFn ()(inv )
482+ return DefaultHelpFn ()(inv )
483483 }
484484 return inv .Command .HelpHandler (inv )
485485 }
Original file line number Diff line number Diff line change @@ -322,9 +322,9 @@ func (lm *newlineLimiter) Write(p []byte) (int, error) {
322322
323323var usageWantsArgRe = regexp .MustCompile (`<.*>` )
324324
325- // defaultHelpFn returns a function that generates usage (help)
325+ // DefaultHelpFn returns a function that generates usage (help)
326326// output for a given command.
327- func defaultHelpFn () HandlerFunc {
327+ func DefaultHelpFn () HandlerFunc {
328328 return func (inv * Invocation ) error {
329329 // We use stdout for help and not stderr since there's no straightforward
330330 // way to distinguish between a user error and a help request.
You can’t perform that action at this time.
0 commit comments