add help flag before subcommand

This commit is contained in:
tocariimaa 2024-12-31 12:47:42 -03:00
parent 1026d7671f
commit c1f35def47

View file

@ -178,6 +178,8 @@ func main() {
case "u2v": case "u2v":
u2vCmd.Parse(os.Args[2:]) u2vCmd.Parse(os.Args[2:])
ugoira2videoCmd(u2vCmd.Args(), flags) ugoira2videoCmd(u2vCmd.Args(), flags)
case "-h":
fmt.Printf("Commands: download, u2v\nUse '%s <command> -h' to see the command-specific flags.\n", os.Args[0])
default: default:
die("invalid command '%s'", os.Args[1]) die("invalid command '%s'", os.Args[1])
} }