From c1f35def473e11285073bedcea14f4f718c725cc Mon Sep 17 00:00:00 2001 From: tocariimaa Date: Tue, 31 Dec 2024 12:47:42 -0300 Subject: [PATCH] add help flag before subcommand --- main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.go b/main.go index 68e93bb..14b4e40 100644 --- a/main.go +++ b/main.go @@ -178,6 +178,8 @@ func main() { case "u2v": u2vCmd.Parse(os.Args[2:]) ugoira2videoCmd(u2vCmd.Args(), flags) + case "-h": + fmt.Printf("Commands: download, u2v\nUse '%s -h' to see the command-specific flags.\n", os.Args[0]) default: die("invalid command '%s'", os.Args[1]) }