mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-03 21:25:13 +00:00
[PR #342] Handle missing /target argument for build command.
#1150
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Original Pull Request: https://github.com/ElectronNET/Electron.NET/pull/342
State: closed
Merged: Yes
Ran into this myself today, if a user fails to provide the
/targetargument when runningelectronize buildthey simply get aKeyNotFoundException.This change checks for the presence of this argument and, if not present, displays help information to the user as well as gracefully exiting.
Related to https://github.com/ElectronNET/Electron.NET/issues/296
As a sidenote, is there a reason we don't use a command line parsing library (for example - https://github.com/commandlineparser/commandline) to handle these cases for us?