We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f92ffa commit 364db7dCopy full SHA for 364db7d
ElectronNET.CLI/Commands/BuildCommand.cs
@@ -50,6 +50,13 @@ public Task<bool> ExecuteAsync()
50
SimpleCommandLineParser parser = new SimpleCommandLineParser();
51
parser.Parse(_args);
52
53
+ if (!parser.Arguments.ContainsKey(_paramTarget))
54
+ {
55
+ Console.WriteLine($"Error: missing '{_paramTarget}' argument.");
56
+ Console.WriteLine(COMMAND_ARGUMENTS);
57
+ return false;
58
+ }
59
+
60
var desiredPlatform = parser.Arguments[_paramTarget][0];
61
string specifiedFromCustom = string.Empty;
62
if (desiredPlatform == "custom" && parser.Arguments[_paramTarget].Length > 1)
0 commit comments