Browse files

Updated the help example to use the outputHelp method.

  • Loading branch information...
1 parent 7cb5aeb commit ee418fdaaa7b94d195736bc5c59648b21c3ea86b @rodolfocaldeira rodolfocaldeira committed Sep 22, 2012
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();

0 comments on commit ee418fd

Please sign in to comment.