We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
number
Allow users to add a type number to the args. Citty will automatically parse the number and thrown an error if the string is invalid
export default defineCommand({ meta: { name: "Test", description: "A test command", }, args: { len: { type: "number", description: "Limit len", default: 15 }, }, run({ args }) { args.len // Type "number" }, });
This issue can be related to #87
Is this a good feature we would like to add?
The content you are editing has changed. Please copy your edits and refresh the page.
The text was updated successfully, but these errors were encountered:
This seems to be working (tested on latest main playground example)
Sorry, something went wrong.
related to #73, #23 and #71
No release since the PR has been merged.
Indeed, it works now (but not released yet).
No branches or pull requests
Describe the feature
Description
Allow users to add a type
number
to the args. Citty will automatically parse the number and thrown an error if the string is invalidExample
Related to
This issue can be related to #87
Feedback
Is this a good feature we would like to add?
Additional information
Tasks
The text was updated successfully, but these errors were encountered: