We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
required
Code snippet:
public class Options { [Option] public required int Port { get; init; } [Option] public required string Server { get; init; } }
Expected behaviour: Both Port and Server are required and the parsing fails if at least on of them is not present.
Port
Server
Actual behaviour: They are not required, I still have to specify [Option(Required = true)] in order for it to work
[Option(Required = true)]