diff options
| author | Petter Rasmussen | 2016-01-17 11:03:32 +0100 | 
|---|---|---|
| committer | Petter Rasmussen | 2016-01-17 11:03:32 +0100 | 
| commit | 2726ba76fe0f6b1e1f3ea9a45465e9d0ec3a5758 (patch) | |
| tree | b15156cfabe68e8b5ca051fdaac108db29dc0d17 /gdrive.go | |
| parent | 8f86e06cceb244c82912f2876fc9f1f2d7239162 (diff) | |
| download | gdrive-2726ba76fe0f6b1e1f3ea9a45465e9d0ec3a5758.tar.bz2 | |
Add name-width flag
Diffstat (limited to 'gdrive.go')
| -rw-r--r-- | gdrive.go | 7 | 
1 files changed, 7 insertions, 0 deletions
| @@ -13,6 +13,7 @@ const ClientId     = "367116221053-7n0vf5akeru7on6o2fjinrecpdoe99eg.apps.googleu  const ClientSecret = "1qsNodXNaWq1mQuBjUjmvhoO"  const DefaultMaxFiles = 30 +const DefaultNameWidth = 40  const DefaultQuery = "trashed = false and 'me' in owners"  var DefaultConfigDir = GetDefaultConfigDir() @@ -49,6 +50,12 @@ func main() {                          Description: fmt.Sprintf(`Default query: "%s". See https://developers.google.com/drive/search-parameters`, DefaultQuery),                          DefaultValue: DefaultQuery,                      }, +                    cli.IntFlag{ +                        Name: "nameWidth", +                        Patterns: []string{"--name-width"}, +                        Description: fmt.Sprintf("Width of name column, default: %d, minimum: 9, use 0 for full width", DefaultNameWidth), +                        DefaultValue: DefaultNameWidth, +                    },                      cli.BoolFlag{                          Name: "skipHeader",                          Patterns: []string{"--no-header"}, | 
