mirror of
https://github.com/smallstep/certificates.git
synced 2024-11-15 18:12:59 +00:00
Change - overwrite help subcommand
This commit is contained in:
parent
054846d449
commit
55d40a7f86
@ -64,7 +64,6 @@ func main() {
|
|||||||
cli.HelpPrinter = usage.HelpPrinter
|
cli.HelpPrinter = usage.HelpPrinter
|
||||||
cli.FlagNamePrefixer = usage.FlagNamePrefixer
|
cli.FlagNamePrefixer = usage.FlagNamePrefixer
|
||||||
cli.FlagStringer = stringifyFlag
|
cli.FlagStringer = stringifyFlag
|
||||||
|
|
||||||
// Configure cli app
|
// Configure cli app
|
||||||
app := cli.NewApp()
|
app := cli.NewApp()
|
||||||
app.Name = "step-ca"
|
app.Name = "step-ca"
|
||||||
@ -116,7 +115,7 @@ intermediate private key.`,
|
|||||||
app.Writer = os.Stdout
|
app.Writer = os.Stdout
|
||||||
app.ErrWriter = os.Stderr
|
app.ErrWriter = os.Stderr
|
||||||
app.Commands = []cli.Command{
|
app.Commands = []cli.Command{
|
||||||
{
|
cli.Command{
|
||||||
Name: "version",
|
Name: "version",
|
||||||
Usage: "Displays the current version of the cli",
|
Usage: "Displays the current version of the cli",
|
||||||
// Command prints out the current version of the tool
|
// Command prints out the current version of the tool
|
||||||
@ -125,6 +124,13 @@ intermediate private key.`,
|
|||||||
return nil
|
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.
|
// Start the golang debug logger if environment variable is set.
|
||||||
|
Loading…
Reference in New Issue
Block a user