fclp / fluent-command-line-parser

A simple, strongly typed .NET C# command line parser library using a fluent easy to use interface
Other
530 stars 86 forks source link

Feature Request: Optionally required #45

Open bbeardsley opened 9 years ago

bbeardsley commented 9 years ago

I'd like to have an option optionally required if another parameter is not specified or vice versa. For example, I have a sftp password parameter that is required unless I specified the local file option in which case I don't want it required.

Something like RequiredWhen(Func requiredFunc) on the fluent interface?

mribichich commented 9 years ago

+1