-
Notifications
You must be signed in to change notification settings - Fork 1
feat(schema)!: Remove variadic property from CLI options definition
#20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -57,7 +57,6 @@ | |
| "short": { "type": "string", "pattern": "^[a-zA-Z]$" }, | ||
| "description": { "type": "string" }, | ||
| "type": { "enum": ["string", "number", "boolean"] }, | ||
| "variadic": { "type": "boolean" }, | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Removing This means it's no longer possible to enforce that multiple values for an option come from a predefined set. Was this intentional? If not, I'd recommend adding a |
||
| "required": { "type": "boolean" }, | ||
| "choices": { | ||
| "type": "array", | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With the removal of the
variadicproperty, the method for defining an option that accepts multiple values is no longer obvious. To improve clarity for users of the schema, especially given this is a breaking change, I recommend adding a note to the documentation.For instance, you could enhance the description of the
argumentsproperty within theoptionobject's table to explain that a variadicargumentshould now be used to accept multiple values. This would make the transition smoother for users.