diff options
| author | Petter Rasmussen | 2016-01-20 21:40:17 +0100 | 
|---|---|---|
| committer | Petter Rasmussen | 2016-01-20 21:40:17 +0100 | 
| commit | b7f7493f1611fe51d8ba803122a3ca37e760c8ad (patch) | |
| tree | 190aba94cdaed620876ef87e475388d02fec6aba /gdrive.go | |
| parent | 44aa7407f6bdbc5157104969ef275cd5e51a99af (diff) | |
| download | gdrive-b7f7493f1611fe51d8ba803122a3ca37e760c8ad.tar.bz2 | |
Allow multiple parent flags
Diffstat (limited to 'gdrive.go')
| -rw-r--r-- | gdrive.go | 8 | 
1 files changed, 4 insertions, 4 deletions
| @@ -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", | 
