Skip to content

Commit

Permalink
Support -h to get root-level help message
Browse files Browse the repository at this point in the history
PR tinkerbell#75 added --help support, but missed -h.

Signed-off-by: Manuel Mendez <[email protected]>
  • Loading branch information
mmlb committed May 21, 2020
1 parent c6c4b14 commit 6ccffde
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cli/tink/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func Execute() error {
}

func isHelpCommand() bool {
return len(os.Args) == 1 || (len(os.Args) == 2 && os.Args[1] == "--help")
return len(os.Args) == 1 || (len(os.Args) == 2 && (os.Args[1] == "-h" || os.Args[1] == "--help"))
}

// initConfig reads in config file and ENV variables if set.
Expand Down

0 comments on commit 6ccffde

Please sign in to comment.