Skip to content

Commit

Permalink
Remove unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
dearchap committed Oct 6, 2024
1 parent f144a4a commit c703878
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 10 deletions.
10 changes: 0 additions & 10 deletions flag.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
1 change: 1 addition & 0 deletions godoc-current.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit c703878

Please sign in to comment.