mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Fix download-url in the cli
This commit is contained in:
parent
4a7b9d23c1
commit
1bbbda4f35
@ -13,14 +13,14 @@ namespace Wabbajack.CLI.Verbs
|
||||
public class DownloadUrl : AVerb
|
||||
{
|
||||
[Option('u', "url", Required = true, HelpText = "Url to download")]
|
||||
public Uri Url { get; set; } = new Uri("");
|
||||
public Uri? Url { get; set; }
|
||||
|
||||
[Option('o', "output", Required = true, HelpText = "Output file name")]
|
||||
public string Output { get; set; } = "";
|
||||
|
||||
protected override async Task<ExitCode> Run()
|
||||
{
|
||||
var state = await DownloadDispatcher.Infer(Url);
|
||||
var state = await DownloadDispatcher.Infer(Url!);
|
||||
if (state == null)
|
||||
return CLIUtils.Exit($"Could not find download source for URL {Url}", ExitCode.Error);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user