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
Using [email protected] and [email protected] and given the following source 'command'
#!/usr/bin/env /usr/bin/node var path = require('path'); var nopt = require('nopt'); var parsed = nopt({ 's': [path] }); console.log(parsed);
By making this executable, I then invoke it by
./command -s /tmp -s /bin -s /var
The output will be
{ s: '/var', argv: { remain: [], cooked: [ '-s', '/tmp', '-s', '/bin', '-s', '/var' ], original: [ '-s', '/tmp', '-s', '/bin', '-s', '/var' ] } }
I would have expected the following, though
{ s: ['/tmp', '/bin', '/var'], argv: { remain: [], cooked: [ '-s', '/tmp', '-s', '/bin', '-s', '/var' ], original: [ '-s', '/tmp', '-s', '/bin', '-s', '/var' ] } }
Am I doing something wrong here?
The text was updated successfully, but these errors were encountered:
Found it. The documentation is off. It must read
"many2" : [path, Array]
Sorry, something went wrong.
c0d156f
Successfully merging a pull request may close this issue.
Using [email protected] and [email protected] and given the following source 'command'
By making this executable, I then invoke it by
The output will be
I would have expected the following, though
Am I doing something wrong here?
The text was updated successfully, but these errors were encountered: