![]() |
DotNet-Arguments 2.0.0
A simple and 'to-the-point' library to parse launch arguments in .NET and .NET Core applications.
|
Static class that contains a function related to parsing launch arguments. More...
Static Public Member Functions | |
static Verb | ParseArguments (Verb rootVerb, string[] arguments) |
Parses the given arguments into the given root Verb. More... | |
Static class that contains a function related to parsing launch arguments.
|
inlinestatic |
Parses the given arguments into the given root Verb.
rootVerb | The Verb for which the given arguments should be processed. |
arguments | Array of launch arguments to parse. |
Exceptions.ParserException | Extended by all the following exceptions. |
Exceptions.InvalidArgumentException | If given the – token twice, or after reaching the end of options. |
Exceptions.NoDefaultOptionFoundException | If no appropriate Option with the OptionFlags.Default flag could be found when needed. |
Exceptions.UnknownOptionException | If a given Option couldn't be found when needed. |
Exceptions.RepeatedSingularOptionException | If a given Option that could only be used once was used twice. |
Exceptions.OptionValueOverflowException | If a given Option that could only hold one value was made to hold more. |
Exceptions.NotEnoughArgumentsException | If a given Option needs to have a value, but is the last argument. |
Exceptions.OptionHasValueAndMoreShortsException | If a short Option with an expected value isn't given at the end of a short options block. |
Exceptions.MissingRequiredOptionException | If an Option with the OptionFlags.Required flag wasn't used after all arguments were parsed. |