Bugfix for invoking CLI without parameters

This commit is contained in:
Kenneth Skovhede
2013-08-24 20:59:33 +02:00
parent 1a44eab08b
commit e20108fe6f
+8 -2
View File
@@ -147,8 +147,14 @@ namespace Duplicati.CommandLine
return 100;
}
string command = cargs[0];
cargs.RemoveAt(0);
string command;
if (cargs.Count > 0)
{
command = cargs[0];
cargs.RemoveAt(0);
}
else
command = "help";
if (!options.ContainsKey("passphrase"))
if (!string.IsNullOrEmpty(System.Environment.GetEnvironmentVariable("PASSPHRASE")))