YArgument
|
Name | Description | |
---|---|---|
GetArgument(String) |
Get a YArgument from the argName. Throw a KeyNotFoundException if the given param is not found.
Example C# YArgumentParser argumentParser = new YArgumentParser(new string[] { "First value of the main argument", "Second value of the main argument", "-s", "source", "/d", "destination", "-readonly" }); YArgument argument = argumentParser.GetArgument("s"); YArgument mainArgument = argumentParser.GetArgument(string.Empty); YArgument nullArgument = argumentParser.GetArgument("m");
|
|
GetArgumentT(T) |
Get a YArgument from the argName. Throw a KeyNotFoundException if the given param is not found.
Example C# enum ArumentsTypes { main = 0, s, m, readonly, } YArgumentParser argumentParser = new YArgumentParser(new string[] { "First value of the main argument", "Second value of the main argument", "-s", "source", "/d", "destination", "-readonly" }); YArgument argument = argumentParser.GetArgument(ArumentsTypes.s); YArgument mainArgument = argumentParser.GetArgument(ArumentsTypes.main); YArgument nullArgument = argumentParser.GetArgument(ArumentsTypes.m);
|