From 6d094981690fd1cff857a94bd1f3d169ecf2ca90 Mon Sep 17 00:00:00 2001 From: Irioth Date: Thu, 18 Jun 2020 00:24:04 +0300 Subject: [PATCH] hide version flag for subcommands --- command.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/command.go b/command.go index daa58c8..dda2f49 100644 --- a/command.go +++ b/command.go @@ -241,7 +241,7 @@ func (c *Command) startApp(ctx *Context) error { app.HideHelpCommand = c.HideHelpCommand app.Version = ctx.App.Version - app.HideVersion = ctx.App.HideVersion + app.HideVersion = true app.Compiled = ctx.App.Compiled app.Writer = ctx.App.Writer app.ErrWriter = ctx.App.ErrWriter