hide version flag for subcommands
This commit is contained in:
parent
4f74020d9f
commit
6d09498169
@ -241,7 +241,7 @@ func (c *Command) startApp(ctx *Context) error {
|
|||||||
app.HideHelpCommand = c.HideHelpCommand
|
app.HideHelpCommand = c.HideHelpCommand
|
||||||
|
|
||||||
app.Version = ctx.App.Version
|
app.Version = ctx.App.Version
|
||||||
app.HideVersion = ctx.App.HideVersion
|
app.HideVersion = true
|
||||||
app.Compiled = ctx.App.Compiled
|
app.Compiled = ctx.App.Compiled
|
||||||
app.Writer = ctx.App.Writer
|
app.Writer = ctx.App.Writer
|
||||||
app.ErrWriter = ctx.App.ErrWriter
|
app.ErrWriter = ctx.App.ErrWriter
|
||||||
|
Loading…
Reference in New Issue
Block a user