aboutsummaryrefslogtreecommitdiffstats
path: root/gdrive.go
diff options
context:
space:
mode:
authorPetter Rasmussen2016-01-23 15:16:53 +0100
committerPetter Rasmussen2016-01-23 15:16:53 +0100
commit6b3da5bcd3891cb6f084a755aea966d7c23f811a (patch)
tree75ac52d08f51fc8d3794fcb4b6e3f8e04fa29a21 /gdrive.go
parentef9d5e6b127e055cac1fd733d49304dd28780ccd (diff)
downloadgdrive-6b3da5bcd3891cb6f084a755aea966d7c23f811a.tar.bz2
Move things around, support subcommand help
Diffstat (limited to 'gdrive.go')
-rw-r--r--gdrive.go9
1 files changed, 7 insertions, 2 deletions
diff --git a/gdrive.go b/gdrive.go
index 78b168a..f20f9f3 100644
--- a/gdrive.go
+++ b/gdrive.go
@@ -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)