From b9f49933b8831e59b98537e96bdddb1f8544ed15 Mon Sep 17 00:00:00 2001 From: Damanpreet Singh Date: Wed, 18 Oct 2023 19:27:05 +0530 Subject: [PATCH] Added Support for '-h' Option for Help Documentation (#1901) --- main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.go b/main.go index 4f3b829136ad..afc0d4300c7d 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 {