Merge pull request #559 from erri120/cli-downloads-fixes

Fixed some CLI bugs
This commit is contained in:
Timothy Baldridge 2020-02-20 21:35:50 -07:00 committed by GitHub
commit 2cc55ccdf1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -29,10 +29,10 @@ namespace Wabbajack.CLI.Verbs
[Option("mods", Required = false, HelpText = "Mods folder location if the provided modlist file is an MO2 modlist.txt")] [Option("mods", Required = false, HelpText = "Mods folder location if the provided modlist file is an MO2 modlist.txt")]
public string Mods { get; set; } public string Mods { get; set; }
[Option("copy", Default = true, HelpText = "Whether to copy the files")] [Option("copy", Default = true, HelpText = "Whether to copy the files", SetName = "copy")]
public bool Copy { get; set; } public bool Copy { get; set; }
[Option("move", Default = false, HelpText = "Whether to move the files")] [Option("move", Default = false, HelpText = "Whether to move the files", SetName = "move")]
public bool Move { get; set; } public bool Move { get; set; }
[Option("overwrite", Default = false, HelpText = "Whether to overwrite the file if it already exists")] [Option("overwrite", Default = false, HelpText = "Whether to overwrite the file if it already exists")]
@ -102,7 +102,7 @@ namespace Wabbajack.CLI.Verbs
try try
{ {
modlist = AInstaller.LoadFromFile(Input); modlist = AInstaller.LoadFromFile(Modlist);
} }
catch (Exception e) catch (Exception e)
{ {