From 6b3da5bcd3891cb6f084a755aea966d7c23f811a Mon Sep 17 00:00:00 2001 From: Petter Rasmussen Date: Sat, 23 Jan 2016 15:16:53 +0100 Subject: Move things around, support subcommand help --- gdrive.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'gdrive.go') 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 ", - Description: "Print subcommand help", + Pattern: "help ", + Description: "Print command help", Callback: printCommandHelp, }, + &cli.Handler{ + Pattern: "help ", + Description: "Print subcommand help", + Callback: printSubCommandHelp, + }, } cli.SetHandlers(handlers) -- cgit v1.2.3