From 864c8349d5fa94e58bca764c2dfe97ae4ba8cc7d Mon Sep 17 00:00:00 2001 From: Ajitem Sahasrabuddhe Date: Thu, 28 Nov 2019 12:16:24 +0530 Subject: [PATCH] Hide version info if user has not defined version --- app.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app.go b/app.go index d03ec5d..5e5c856 100644 --- a/app.go +++ b/app.go @@ -110,7 +110,6 @@ func NewApp() *App { HelpName: filepath.Base(os.Args[0]), Usage: "A new cli application", UsageText: "", - Version: "0.0.0", BashComplete: DefaultAppComplete, Action: helpCommand.Action, Compiled: compileTime(), @@ -141,7 +140,7 @@ func (a *App) Setup() { } if a.Version == "" { - a.Version = "0.0.0" + a.HideVersion = true } if a.BashComplete == nil {