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

displaying help fails #127

Closed
gidsg opened this issue Jul 15, 2016 · 2 comments
Closed

displaying help fails #127

gidsg opened this issue Jul 15, 2016 · 2 comments
Labels

Comments

@gidsg
Copy link
Contributor

gidsg commented Jul 15, 2016

Displaying help no longer works for me:

Environment info

$ node-lambda --version
0.8.5
$ nvm current
v6.3.0

Displaying help

$ node-lambda -h
/usr/local/lib/node_modules/node-lambda/node_modules/commander/index.js:946
      , cmd.description()
            ^

TypeError: cmd.description is not a function
    at /usr/local/lib/node_modules/node-lambda/node_modules/commander/index.js:946:13
    at Array.map (native)
    at Command.commandHelp (/usr/local/lib/node_modules/node-lambda/node_modules/commander/index.js:936:6)
    at Command.helpInformation (/usr/local/lib/node_modules/node-lambda/node_modules/commander/index.js:993:26)
    at Command.outputHelp (/usr/local/lib/node_modules/node-lambda/node_modules/commander/index.js:1023:32)
    at outputHelpIfNecessary (/usr/local/lib/node_modules/node-lambda/node_modules/commander/index.js:1078:11)
    at Command.parseArgs (/usr/local/lib/node_modules/node-lambda/node_modules/commander/index.js:620:5)
    at Command.parse (/usr/local/lib/node_modules/node-lambda/node_modules/commander/index.js:458:21)
    at Object.<anonymous> (/usr/local/lib/node_modules/node-lambda/bin/node-lambda:102:9)
    at Module._compile (module.js:541:32)
@DeviaVir DeviaVir mentioned this issue Jul 16, 2016
7 tasks
@DeviaVir DeviaVir added the bug label Jul 27, 2016
@DeviaVir DeviaVir mentioned this issue Aug 16, 2016
5 tasks
DeviaVir pushed a commit that referenced this issue Sep 2, 2016
@DeviaVir
Copy link
Collaborator

DeviaVir commented Sep 2, 2016

This would've worked if you had specified which command you'd like to have seen the help page for, i.e. node-lambda deploy -h

#147 makes deploy the default and alias so that the help is returned even if you only type node-lambda -h.

Thanks for your report and helping us make node-lambda better!

@DeviaVir DeviaVir mentioned this issue Sep 2, 2016
5 tasks
@DeviaVir
Copy link
Collaborator

DeviaVir commented Sep 6, 2016

This change unfortunately exposed a bug with commander, that blocked people from using arguments with other commands.

This means that you'll have to use node-lambda [command] -h again.

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

No branches or pull requests

2 participants