Added Support for '-h' Option for Help Documentation (#1901)

This commit is contained in:
Damanpreet Singh 2023-10-18 19:27:05 +05:30 committed by GitHub
parent b46fb75c73
commit b9f49933b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 {