aboutsummaryrefslogtreecommitdiffstats
path: root/gdrive.go
diff options
context:
space:
mode:
authorPetter Rasmussen2016-01-17 11:03:32 +0100
committerPetter Rasmussen2016-01-17 11:03:32 +0100
commit2726ba76fe0f6b1e1f3ea9a45465e9d0ec3a5758 (patch)
treeb15156cfabe68e8b5ca051fdaac108db29dc0d17 /gdrive.go
parent8f86e06cceb244c82912f2876fc9f1f2d7239162 (diff)
downloadgdrive-2726ba76fe0f6b1e1f3ea9a45465e9d0ec3a5758.tar.bz2
Add name-width flag
Diffstat (limited to 'gdrive.go')
-rw-r--r--gdrive.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/gdrive.go b/gdrive.go
index c065566..f5f7edb 100644
--- a/gdrive.go
+++ b/gdrive.go
@@ -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"},