github.com/haraldrudell/parl@v0.4.176/pflags/help-options.go (about) 1 /* 2 © 2020–present Harald Rudell <harald.rudell@gmail.com> (https://haraldrudell.github.io/haraldrudell/) 3 ISC License 4 */ 5 6 package pflags 7 8 // helpOptions are additional options implemented by the flag package 9 // - [mains.ArgParser] invokes [flag.Parse] 10 // - [flag.FlagSet] parseOne method have these as string constants in the code 11 var helpOptions = []string{"h", "help"} 12 13 // returns implicit help options: "h" "help" 14 func HelpOptions() (optionNames []string) { 15 return helpOptions 16 }