diff --git a/examples/pm b/examples/pm index baac7816f..2d0506441 100755 --- a/examples/pm +++ b/examples/pm @@ -4,6 +4,7 @@ var program = require('..'); program .version('0.0.1') + .description('Fake package manager') .command('install [name]', 'install one or more packages').alias('i') .command('search [query]', 'search with optional query').alias('s') .command('list', 'list packages installed') diff --git a/index.js b/index.js index 86d82bdbb..d5dbe1868 100644 --- a/index.js +++ b/index.js @@ -1021,17 +1021,17 @@ Command.prototype.helpInformation = function() { if (commandHelp) cmds = [commandHelp]; var options = [ - ' Options:' + '' + , ' Options:' , '' , '' + this.optionHelp().replace(/^/gm, ' ') , '' - , '' ]; return usage - .concat(cmds) .concat(desc) .concat(options) + .concat(cmds) .join('\n'); };