Tweaks to rclone authorize

* Document the headless / remote setup procedure
  * Move Config constants into fs
  * Parse arguments in main for Authorize
This commit is contained in:
Nick Craig-Wood
2016-01-07 20:31:23 +00:00
parent bcbd30bb8a
commit 5189231a34
18 changed files with 159 additions and 66 deletions
+4 -2
View File
@@ -227,9 +227,11 @@ var Commands = []Command{
{
Name: "authorize",
Help: `
Remote authorization.`,
Remote authorization. Used to authorize a remote or headless
rclone from a machine with a browser - use as instructed by
rclone config.`,
Run: func(fdst, fsrc fs.Fs) error {
fs.Authorize()
fs.Authorize(pflag.Args()[1:])
return nil
},
NoStats: true,