From 72fa552f115e7e97857d8043a4d4299618d9ead8 Mon Sep 17 00:00:00 2001 From: Artem Charykov Date: Fri, 11 Aug 2017 14:31:40 +0300 Subject: [PATCH] cli version and help flags --- main.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 8c1044fb405..1ad630f6680 100644 --- a/main.go +++ b/main.go @@ -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"