You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I feel that this commander.js is the best cli parser I found. I choose it to develop my small cli app.
But when I start to use it while reading its docs, it take me 2 times to find the <>[] syntax, but still missing the -no- syntax explanation.
So I've made a configure() that port to option() for an easy work:
JSON config --> configure() --> option()
It look like this, please tell me if you think it's good, I'll submit this code, hope this help:
And it still have some issue:
• #601 Adding support for required arguments
• #230 Required arguments for options and commands are not enforced
• #574 Defining boolean options via Command#option() defaults to undefined, not false
For further refactoring, In my opinion, I think these features might good:
• Validation value
• Change parseOptions() behavior: It check through the argv's option only, so every option defined but not in argv was not be checked for default value.
• Typescript
Thanks.
The text was updated successfully, but these errors were encountered:
Hello there! Really thanks for your interesting in project. While your feature is good, we'd prefer to keep commander's API small and consistent and sure easily to create high-level wrappers on top of it, means we are beside of opinionated decisions like this :-)
Hi,
I feel that this commander.js is the best cli parser I found. I choose it to develop my small cli app.
But when I start to use it while reading its docs, it take me 2 times to find the
<>
[]
syntax, but still missing the-no-
syntax explanation.So I've made a
configure()
that port tooption()
for an easy work:JSON config --> configure() --> option()
It look like this, please tell me if you think it's good, I'll submit this code, hope this help:
And it still have some issue:
• #601 Adding support for required arguments
• #230 Required arguments for options and commands are not enforced
• #574 Defining boolean options via Command#option() defaults to undefined, not false
For further refactoring, In my opinion, I think these features might good:
• Validation value
• Change parseOptions() behavior: It check through the
argv
's option only, so every option defined but not inargv
was not be checked for default value.• Typescript
Thanks.
The text was updated successfully, but these errors were encountered: