aboutsummaryrefslogtreecommitdiffstats
path: root/gdrive.go
diff options
context:
space:
mode:
Diffstat (limited to 'gdrive.go')
-rw-r--r--gdrive.go10
1 files changed, 9 insertions, 1 deletions
diff --git a/gdrive.go b/gdrive.go
index 6714748..0a90f8d 100644
--- a/gdrive.go
+++ b/gdrive.go
@@ -321,11 +321,19 @@ func main() {
},
},
&cli.Handler{
- Pattern: "[global] delete <id>",
+ Pattern: "[global] delete [options] <id>",
Description: "Delete file or directory",
Callback: deleteHandler,
Flags: cli.Flags{
"global": globalFlags,
+ "options": []cli.Flag{
+ cli.BoolFlag{
+ Name: "recursive",
+ Patterns: []string{"-r", "--recursive"},
+ Description: "Delete directory and all it's content",
+ OmitValue: true,
+ },
+ },
},
},
&cli.Handler{