Should Document extend Command?
#70
-
|
The root CLI is a command. Note Most CLI frameworks model it this way:
There are exceptions —
— but even among these, it's typical for the root command to extend the branch command ( Both
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 9 replies
-
|
Here's how this change might look: #74 |
Beta Was this translation helpful? Give feedback.
-
|
I agree that the current form is awkward (and I've implemented code against the spec). But the solution I would propose would be:
It think this will allow for important meta information for the spec as a whole document but remove the awkwardness of have two object that basically need to understood identically in processing code. |
Beta Was this translation helpful? Give feedback.
-
|
Yes, that is it:
And all the removed parts would be put in that root As for the overlap between between the data in the CliInfo Object
changes:
semantics:
@boblail does that makes sense? Another thing we could consider is the remove the |
Beta Was this translation helpful? Give feedback.
-
|
Implemented in #85 |
Beta Was this translation helpful? Give feedback.
Implemented in #85