mirror of
https://github.com/trufflesecurity/trufflehog.git
synced 2024-11-10 07:04:24 +00:00
Added Support for '-h' Option for Help Documentation (#1901)
This commit is contained in:
parent
b46fb75c73
commit
b9f49933b8
1 changed files with 3 additions and 0 deletions
3
main.go
3
main.go
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue