Skip to content
Myr

fix examples/help. Closes #89

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by TJ Holowaychuk · committed by TJ Holowaychuk · parent 7cb5aeb · Browse files · 2 files+12 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+12 added−1 removed

  • other:+12 added−1 removed

2 files+12 added−1 removed

modified:examples/help+1 added-1 removed
11 unmodified lines
12 .option('-b, --bar', 'enable some bar')13 .option('-B, --baz', 'enable some baz')14 .parse(process.argv);1516if (!process.argv.length) program.help();16if (!program.args.length) program.help();17
modified:lib/commander.js+11 added
993 unmodified lines
994 this.emit('--help');995};996997/**998 * Output help information and exit.999 *1000 * @api public1001 */10021003Command.prototype.help = function(){1004 this.outputHelp();1005 process.exit();1006};10071008/**1009 * Camel-case the given `flag`1010 *1011 * @param {String} flag1012 * @return {String}
52 unmodified lines