File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 11# Not released
22
3+ ElectronNET.CLI
4+
5+ * Fixed a bug where ` electronize build ` with no arguments would throw a ` KeyNotFoundException ` .
6+
37# Released
48
59# 5.30.1
Original file line number Diff line number Diff line change @@ -50,6 +50,13 @@ public Task<bool> ExecuteAsync()
5050 SimpleCommandLineParser parser = new SimpleCommandLineParser ( ) ;
5151 parser . Parse ( _args ) ;
5252
53+ if ( ! parser . Arguments . ContainsKey ( _paramTarget ) )
54+ {
55+ Console . WriteLine ( $ "Error: missing '{ _paramTarget } ' argument.") ;
56+ Console . WriteLine ( COMMAND_ARGUMENTS ) ;
57+ return false ;
58+ }
59+
5360 var desiredPlatform = parser . Arguments [ _paramTarget ] [ 0 ] ;
5461 string specifiedFromCustom = string . Empty ;
5562 if ( desiredPlatform == "custom" && parser . Arguments [ _paramTarget ] . Length > 1 )
You can’t perform that action at this time.
0 commit comments