aboutsummaryrefslogtreecommitdiffstats
path: root/gdrive.go
diff options
context:
space:
mode:
Diffstat (limited to 'gdrive.go')
-rw-r--r--gdrive.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdrive.go b/gdrive.go
index 3218a0c..f89688b 100644
--- a/gdrive.go
+++ b/gdrive.go
@@ -33,6 +33,11 @@ func main() {
Patterns: []string{"--refresh-token"},
Description: "Oauth refresh token used to get access token (for advanced users)",
},
+ cli.StringFlag{
+ Name: "accessToken",
+ Patterns: []string{"--access-token"},
+ Description: "Oauth access token, only recommended for short-lived requests because of short lifetime (for advanced users)",
+ },
}
handlers := []*cli.Handler{