File tree 2 files changed +3
-3
lines changed
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 {
479
479
480
480
if inv .Command .Handler == nil || errors .Is (state .flagParseErr , pflag .ErrHelp ) {
481
481
if inv .Command .HelpHandler == nil {
482
- return defaultHelpFn ()(inv )
482
+ return DefaultHelpFn ()(inv )
483
483
}
484
484
return inv .Command .HelpHandler (inv )
485
485
}
Original file line number Diff line number Diff line change @@ -322,9 +322,9 @@ func (lm *newlineLimiter) Write(p []byte) (int, error) {
322
322
323
323
var usageWantsArgRe = regexp .MustCompile (`<.*>` )
324
324
325
- // defaultHelpFn returns a function that generates usage (help)
325
+ // DefaultHelpFn returns a function that generates usage (help)
326
326
// output for a given command.
327
- func defaultHelpFn () HandlerFunc {
327
+ func DefaultHelpFn () HandlerFunc {
328
328
return func (inv * Invocation ) error {
329
329
// We use stdout for help and not stderr since there's no straightforward
330
330
// way to distinguish between a user error and a help request.
You can’t perform that action at this time.
0 commit comments