How can you access the Value property of a CommandLine Parsed ?
Trying to use the CommandLineParser
The wiki section on Parsing says the instance of T can be access through the Value
property ...
If parsing succeeds, you'll get a derived Parsed type that exposes an instance of T through its Value property.
But I can't see any Value
property on the parserResult
, only a Tag
...
ParserResult<Options> parserResult = Parser.Default.ParseArguments<Options>(args);
WriteLine(parserResult.Tag);
And I know I'm missing something as if I debug, I can see the Value
property ???