Merge pull request #279 from nodirt/version

Honor HideHelp and HideVersion
This commit is contained in:
Jesse Szwedko 2015-10-05 20:26:32 -07:00
commit 88df06b5e3

4
app.go
View File

@ -123,11 +123,11 @@ func (a *App) Run(arguments []string) (err error) {
return nil
}
if checkHelp(context) {
if !a.HideHelp && checkHelp(context) {
return nil
}
if checkVersion(context) {
if !a.HideVersion && checkVersion(context) {
return nil
}