Skip to content

Commit

Permalink
Added Support for '-h' Option for Help Documentation (#1901)
Browse files Browse the repository at this point in the history
  • Loading branch information
fumblehool authored Oct 18, 2023
1 parent b46fb75 commit b9f4993
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,9 @@ func init() {

cli.Version("trufflehog " + version.BuildVersion)

//Support -h for help
cli.HelpFlag.Short('h')

if len(os.Args) <= 1 && isatty.IsTerminal(os.Stdout.Fd()) {
args := tui.Run()
if len(args) == 0 {
Expand Down

0 comments on commit b9f4993

Please sign in to comment.