Skip to content

Find, verify, and analyze leaked credentials

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

Damanpreet Singhb9f49933b883
diff --git a/main.go b/main.go
index 4f3b82913..afc0d4300 100644
--- a/main.go
+++ b/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 {