Never show version if HideVersion=true

This commit is contained in:
Radek Simko
2016-03-11 16:25:30 +00:00
parent a7936f1d21
commit d21170f0e3
3 changed files with 19 additions and 3 deletions

2
app.go
View File

@@ -32,7 +32,7 @@ type App struct {
EnableBashCompletion bool
// Boolean to hide built-in help command
HideHelp bool
// Boolean to hide built-in version flag
// Boolean to hide built-in version flag and the VERSION section of help
HideVersion bool
// An action to execute when the bash-completion flag is set
BashComplete func(context *Context)