Skip to content

Commit

Permalink
hide version flag for subcommands
Browse files Browse the repository at this point in the history
  • Loading branch information
Irioth committed Jun 17, 2020
1 parent 4f74020 commit 6d09498
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion command.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6d09498

Please sign in to comment.