diff --git a/flag.go b/flag.go index c6c0c4ab9e..420ea5e939 100644 --- a/flag.go +++ b/flag.go @@ -185,16 +185,6 @@ func (f *FlagBase[T, C, V]) IsDefaultVisible() bool { return !f.HideDefault } -func generateHelpFlag() Flag { - return &BoolFlag{ - Name: "help", - Aliases: []string{"h"}, - Usage: "show help", - HideDefault: true, - Local: true, - } -} - func newFlagSet(name string, flags []Flag) (*flag.FlagSet, error) { set := flag.NewFlagSet(name, flag.ContinueOnError) diff --git a/godoc-current.txt b/godoc-current.txt index 981ab52426..2d120038ab 100644 --- a/godoc-current.txt +++ b/godoc-current.txt @@ -644,6 +644,7 @@ var VersionFlag Flag = &BoolFlag{ Aliases: []string{"v"}, Usage: "print the version", HideDefault: true, + Local: true, } VersionFlag prints the version for the application