Skip to content
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

command-line argument parsing error #6

Closed
blahah opened this issue Nov 15, 2014 · 3 comments
Closed

command-line argument parsing error #6

blahah opened this issue Nov 15, 2014 · 3 comments
Assignees

Comments

@blahah
Copy link
Member

blahah commented Nov 15, 2014

$ bionode-ncbi help
/Users/rds45/.nvm/v0.10.24/lib/node_modules/bionode-ncbi/cli.js:44
var ncbiStream = options ? ncbi[command](options) : ncbi[command](arg1, arg2,
                                        ^
TypeError: Property 'undefined' of object #<Object> is not a function
    at Object.<anonymous> (/Users/rds45/.nvm/v0.10.24/lib/node_modules/bionode-ncbi/cli.js:44:41)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:902:3
@blahah
Copy link
Member Author

blahah commented Nov 15, 2014

@bmpvieira I think a simple help message listing the commands would be nice, printed if no commands or the help command are entered. And then a helpful error if a non-existent command is entered.

If you agree with this, I'll send a PR

@bmpvieira
Copy link
Member

@blahah yes I agree, and a PR is welcome. Thanks! :)

@bmpvieira
Copy link
Member

Discussion moved to bionode/bionode#25.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants