Skip to content
Myr

Add comment for InitDefaultHelpFlag

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Albert Nigmatzianov · committed by GitHub · parent fe69f2e · Browse files · 1 file+1 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−0 removed

  • other:+1 added−0 removed

1 file+1 added−0 removed

modified:command.go+1 added
723 unmodified lines
724}725726// InitDefaultHelpFlag adds default help flag to c.727// It is called automatically by executing the c or by calling help and usage.728// If c already has help flag, it will do nothing.729func (c *Command) InitDefaultHelpFlag() {730 c.mergePersistentFlags()731 if c.Flags().Lookup("help") == nil {732 usage := "help for "
533 unmodified lines