This removes the use of Environment.GetCommandLineArgs() in the static constructor of the CommandLineConfigs type. Since this was being used in other commands directly, we now have to inject a ParseResult into the various commands. This also means that the current implementation of the --version option didn't work anymore, so I did what is the common/conventionally-done thing which is pulling --version out into a top-level command.
Fixes #287
This removes the use of
Environment.GetCommandLineArgs()
in the static constructor of theCommandLineConfigs
type. Since this was being used in other commands directly, we now have to inject a ParseResult into the various commands. This also means that the current implementation of the--version
option didn't work anymore, so I did what is the common/conventionally-done thing which is pulling--version
out into a top-level command.