How to prevent specifying the same option twice #305
-
Hi, (Sorry about the free form issue, This is not a bug and not a feature request - it's a question 😄) It seems that by default I can specify an option multiple times and the last one is the one that counts (this is from the Demo example:
Is there a way to disallow it? (sorry if I miss something obvious but I'm completely new to windows, .Net and F#). Thanks Haim |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Right now there isn't a way to fail, but that behavior is pretty common for CLIs. E.g. here's and just to verify here's |
Beta Was this translation helpful? Give feedback.
-
Yeah, I can live with it. I just started playing with it and I'm not sure how it handles lists - many libraries handle lists by repeating the option so I wanted to differentiate ... In any case, thanks for what seems to be a great library for displaying data in the console. Haim |
Beta Was this translation helpful? Give feedback.
Right now there isn't a way to fail, but that behavior is pretty common for CLIs. E.g. here's
GH
and just to verify here's
git
on ubuntu