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
Idea to include global.argv
/ minimist
?
#46
Comments
global.argv
/ minimist
?
Another argument parsing library to consider (I personally prefer it over minimist): https://github.com/vercel/arg |
The problem with it what there are too many alternatives, and everybody wants a different one.
|
I was thinking about limiting the integration to expose the arguments under Whenever the user needs more (like support for For this project, I think the best option would be the simplest/smallest library. |
No need for that. If a script uses the API it already knows if an argument should be a number. Stuff like that should be handled by the script writer. A simple string/boolean case should be enough. Maybe instead of going for popularity of a parsing package one could argue that the smallest one with the fastest loading time might be the best to choose. Just another way to look at the discussion. |
My thoughts exactly |
Using |
|
The difference I see between As |
Done! Minimist in v2. |
This library is a timesaver! What do you think of the idea to also add passed-in arguments to the global, using something like minimist?
The change:
Run script:
Usage:
The text was updated successfully, but these errors were encountered: