Skip to content

Commit

Permalink
cli version and help flags
Browse files Browse the repository at this point in the history
  • Loading branch information
Artem Charykov committed Aug 11, 2017
1 parent c9ab90b commit 72fa552
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,8 @@ var isTTY = isatty.IsTerminal(os.Stdout.Fd()) || isatty.IsCygwinTerminal(os.Stdo

func main() {
// This won't be needed in cli v2
cli.VersionFlag.Name = "version"
cli.HelpFlag.Name = "help"
cli.HelpFlag.Hidden = true
cli.VersionFlag = cli.BoolFlag{Name: "version"}
cli.HelpFlag = cli.BoolFlag{Name: "help", Hidden: true}

app := cli.NewApp()
app.Name = "k6"
Expand Down

0 comments on commit 72fa552

Please sign in to comment.