Closed
Description
Love the library! If I have a property like:
[CliOption(Description = "Description for Display", AllowedValues = new[] { "Big", "Small" }, Required = true)]
public string? Display { get; set; }
It correctly gives an error for:
prog.exe --display
prog.exe --display invalid
But it runs without error if the option is entirely missing:
prog.exe
Leaving the Display property as null.
Is this correct behaviour? And if so, how do I make the --display
option mandatory?
Metadata
Metadata
Assignees
Labels
No labels