Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Updated the help example to use the outputHelp method. #89

Closed
wants to merge 1 commit into from

2 participants

@rodolfocaldeira

Updated the help example to use the new outputHelp function.

I'm starting out with node.js so I apologize in advance if this is totally wrong.

Thank you for an amazing module.

@tj tj closed this pull request from a commit
@tj fix examples/help. Closes #89 1fc8330
@tj tj closed this in 1fc8330
@tj
Owner
tj commented

I had the property wrong :D thanks

@palanik palanik referenced this pull request from a commit
@tj fix examples/help. Closes #89 03c897c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  examples/help
View
2  examples/help
@@ -13,5 +13,5 @@ program
.option('-B, --baz', 'enable some baz')
.parse(process.argv);
-if (!process.argv.length) program.help();
+if (process.argv.length === 2) program.outputHelp();
Something went wrong with that request. Please try again.