diff options
| author | Petter Rasmussen | 2016-01-17 22:50:26 +0100 | 
|---|---|---|
| committer | Petter Rasmussen | 2016-01-17 22:50:26 +0100 | 
| commit | 742c5a2f7b16a5323eddfa51cbd387c504d7e02a (patch) | |
| tree | c5d8896a2220bebcb4b010689a307245e706ac69 /gdrive.go | |
| parent | f4dd433b66f7d25bca32df758e541c0eb948669b (diff) | |
| download | gdrive-742c5a2f7b16a5323eddfa51cbd387c504d7e02a.tar.bz2 | |
Implement about
Diffstat (limited to 'gdrive.go')
| -rw-r--r-- | gdrive.go | 18 | 
1 files changed, 15 insertions, 3 deletions
| @@ -246,9 +246,9 @@ func main() {              },          },          &cli.Handler{ -            Pattern: "[global options] quota [options]", -            Description: "Show free space", -            Callback: handler, +            Pattern: "[global options] about [options]", +            Description: "Google drive metadata, quota usage, import/export formats", +            Callback: aboutHandler,              Flags: cli.Flags{                  "global options": globalFlags,                  "options": []cli.Flag{ @@ -258,6 +258,18 @@ func main() {                          Description: "Show size in bytes",                          OmitValue: true,                      }, +                    cli.BoolFlag{ +                        Name: "exportFormats", +                        Patterns: []string{"--export"}, +                        Description: "Show supported export formats", +                        OmitValue: true, +                    }, +                    cli.BoolFlag{ +                        Name: "importFormats", +                        Patterns: []string{"--import"}, +                        Description: "Show supported import formats", +                        OmitValue: true, +                    },                  },              },          }, | 
