From 55d40a7f86d6d5a72c699c85d2afc64f3f3403aa Mon Sep 17 00:00:00 2001 From: max furman Date: Mon, 26 Nov 2018 16:24:11 -0500 Subject: [PATCH] Change - overwrite help subcommand --- cmd/step-ca/main.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/cmd/step-ca/main.go b/cmd/step-ca/main.go index 10704819..3eb89345 100644 --- a/cmd/step-ca/main.go +++ b/cmd/step-ca/main.go @@ -64,7 +64,6 @@ func main() { cli.HelpPrinter = usage.HelpPrinter cli.FlagNamePrefixer = usage.FlagNamePrefixer cli.FlagStringer = stringifyFlag - // Configure cli app app := cli.NewApp() app.Name = "step-ca" @@ -116,7 +115,7 @@ intermediate private key.`, app.Writer = os.Stdout app.ErrWriter = os.Stderr app.Commands = []cli.Command{ - { + cli.Command{ Name: "version", Usage: "Displays the current version of the cli", // Command prints out the current version of the tool @@ -125,6 +124,13 @@ intermediate private key.`, return nil }, }, + cli.Command{ + Name: "help", + Aliases: []string{"h"}, + Usage: "displays help for the specified command or command group", + ArgsUsage: "", + Action: usage.HelpCommandAction, + }, } // Start the golang debug logger if environment variable is set.