Skip to content

Commit

Permalink
style(cli): show help without errors
Browse files Browse the repository at this point in the history
This small change will allow users to run `lacework help` without
failing with an error message. Just a nice UX addition! 😄

Signed-off-by: Salim Afiune Maya <[email protected]>
  • Loading branch information
afiune committed May 8, 2020
1 parent 7f9d81f commit a72ba55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Start by configuring the Lacework CLI with the command:
This will prompt you for your Lacework account and a set of API access keys.`,
PersistentPreRunE: func(cmd *cobra.Command, _ []string) error {
switch cmd.Use {
case "configure", "version":
case "help [command]", "configure", "version":
return nil
default:
return cli.VerifySettings()
Expand Down

0 comments on commit a72ba55

Please sign in to comment.