JMS #28: -h flags for subcommands

This commit is contained in:
Jeremy Saenz
2013-08-13 21:40:39 -07:00
parent 61d5778536
commit 8cea424806
2 changed files with 18 additions and 1 deletions

View File

@@ -101,3 +101,10 @@ func checkHelp(c *Context) {
os.Exit(0)
}
}
func checkCommandHelp(c *Context, name string) {
if c.Bool("h") || c.Bool("help") {
ShowCommandHelp(c, name)
os.Exit(0)
}
}