YArgument
|
Name | Description | |
---|---|---|
TryGetArgument(String) |
Try to get a YArgument from the argName or null 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");
|
|
TryGetArgumentT(T) |
Try to get a YArgument from the argName or null 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);
|