Drop arguments
property of Option Object
#36
Unanswered
patriksvensson
asked this question in
Ideas and suggestions
Replies: 1 comment
-
I guess it comes down to a tradeoff between making the spec easy to read and expressing all possible (maybe weird) CLIs. I think just having a value name and arity in the option would definitely be easier to understand and interpret, but it will loose expressiveness. In your example above, the difference between |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm not 100% sure having an
arguments
property as part of an Option Object is what we want.It makes the specification a little bit flexible for "weird" CLI:s, but I'm thinking it also makes it less readable, and more complex for implementors trying to make sense of an OpenCLI Description.
Consider the following OpenCLI Description:
Which means that you can call this like this (depending on the CLI parsing capabilities of course)
We could probably shorten this down to something like the example below, keeping almost the same capabilities, and keep things a bit more succinct. It's less flexible, but will probably work for 99.9% of all CLIs.
Does anyone have thoughts or opinions?
Beta Was this translation helpful? Give feedback.
All reactions