add help flag before subcommand
This commit is contained in:
parent
1026d7671f
commit
c1f35def47
1 changed files with 2 additions and 0 deletions
2
main.go
2
main.go
|
@ -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])
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue