diff options
| author | Petter Rasmussen | 2016-01-23 15:16:53 +0100 |
|---|---|---|
| committer | Petter Rasmussen | 2016-01-23 15:16:53 +0100 |
| commit | 6b3da5bcd3891cb6f084a755aea966d7c23f811a (patch) | |
| tree | 75ac52d08f51fc8d3794fcb4b6e3f8e04fa29a21 /gdrive.go | |
| parent | ef9d5e6b127e055cac1fd733d49304dd28780ccd (diff) | |
| download | gdrive-6b3da5bcd3891cb6f084a755aea966d7c23f811a.tar.bz2 | |
Move things around, support subcommand help
Diffstat (limited to 'gdrive.go')
| -rw-r--r-- | gdrive.go | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -339,10 +339,15 @@ func main() { Callback: printHelp, }, &cli.Handler{ - Pattern: "help <subcommand>", - Description: "Print subcommand help", + Pattern: "help <command>", + Description: "Print command help", Callback: printCommandHelp, }, + &cli.Handler{ + Pattern: "help <command> <subcommand>", + Description: "Print subcommand help", + Callback: printSubCommandHelp, + }, } cli.SetHandlers(handlers) |
