add help message

This commit is contained in:
Chris Lu 2021-02-27 12:15:49 -08:00
parent 70434df105
commit 3b76a51f5f

View file

@ -886,7 +886,7 @@ func (f *FlagSet) parseOne() (bool, error) {
// The return value will be ErrHelp if -help or -h were set but not defined.
func (f *FlagSet) Parse(arguments []string) error {
if _, ok := f.formal[DefaultConfigFlagName]; !ok {
f.String(DefaultConfigFlagName, "", "config file")
f.String(DefaultConfigFlagName, "", "file with command line options with each line in optionName=optionValue format")
}
f.parsed = true