It would be great if both required and optional options could be marked as NotNull with parser throwing exception if empty value is passed. The check should work for any object type, not only strings.
Example
var p = new FluentCommandLineParser<ApplicationArguments>();
p.Setup(arg => arg.RecordId)
.As('r', "record")
.Required();
p.Setup(arg => arg.NewValue)
.As('v', "value")
.Required().NotNull(); // <- ensures that -v|--value is not empty
p.Setup(arg => arg.Silent)
.As('s', "silent")
.SetDefault(false);
Current implementation allows command line to have ---value without any actual value so 'not null or empty' checks need be done separately.
It would be great if both required and optional options could be marked as NotNull with parser throwing exception if empty value is passed. The check should work for any object type, not only strings. Example
Current implementation allows command line to have
---value
without any actual value so 'not null or empty' checks need be done separately.