Hello,
This is not particularly an issue. I was wondering could I make two or more options to act like at least one of them is required, but if none is provided I will get a required error?
[Verb("rename")]
public sealed class RenameOptions
{
[Option("prefix", HelpText = "Prefix to append to file name", SetName = "rename", Required = true)]
public string Prefix { get; set; }
[Option("suffix", HelpText = "Suffix to append to file name", SetName = "rename", Required = true)]
public string Suffix { get; set; }
}
This works if both options are included. Could I make them to work separately or together, but always one should be provided?