rclone: Rework backend option parsing

This change allows passing no arguments to rclone, using `-o
rclone.args=""`. It is helpful when running rclone remotely via SSH
using a key with a forced command (via `command=` in `authorized_keys`).
This commit is contained in:
Alexander Neumann
2019-03-02 10:36:42 +01:00
parent 7b8d1dc040
commit 3865b59716
3 changed files with 10 additions and 10 deletions

View File

@@ -14,7 +14,9 @@ func TestParseConfig(t *testing.T) {
"rclone:local:foo:/bar",
Config{
Remote: "local:foo:/bar",
Connections: 5,
Program: defaultConfig.Program,
Args: defaultConfig.Args,
Connections: defaultConfig.Connections,
},
},
}