aboutsummaryrefslogtreecommitdiffstats
path: root/gdrive.go
diff options
context:
space:
mode:
authorPetter Rasmussen2016-01-20 21:40:17 +0100
committerPetter Rasmussen2016-01-20 21:40:17 +0100
commitb7f7493f1611fe51d8ba803122a3ca37e760c8ad (patch)
tree190aba94cdaed620876ef87e475388d02fec6aba /gdrive.go
parent44aa7407f6bdbc5157104969ef275cd5e51a99af (diff)
downloadgdrive-b7f7493f1611fe51d8ba803122a3ca37e760c8ad.tar.bz2
Allow multiple parent flags
Diffstat (limited to 'gdrive.go')
-rw-r--r--gdrive.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdrive.go b/gdrive.go
index f884b8e..97f5e91 100644
--- a/gdrive.go
+++ b/gdrive.go
@@ -109,10 +109,10 @@ func main() {
Description: "Upload directory recursively",
OmitValue: true,
},
- cli.StringFlag{
+ cli.StringSliceFlag{
Name: "parent",
Patterns: []string{"-p", "--parent"},
- Description: "Parent id, used to upload file to a specific directory",
+ Description: "Parent id, used to upload file to a specific directory, can be specified multiple times to give many parents",
},
cli.StringFlag{
Name: "name",
@@ -168,10 +168,10 @@ func main() {
Flags: cli.Flags{
"global options": globalFlags,
"options": []cli.Flag{
- cli.StringFlag{
+ cli.StringSliceFlag{
Name: "parent",
Patterns: []string{"-p", "--parent"},
- Description: "Parent id of created directory",
+ Description: "Parent id of created directory, can be specified multiple times to give many parents",
},
cli.BoolFlag{
Name: "share",