Skip to content
Myr

fix mergeconfict

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

authored by David Lojudice S · committed by zhiyelee · parent 543e47f · Browse files · 2 files+27 added−2 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+27 added−2 removed

  • other:+27 added−2 removed

2 files+27 added−2 removed

added:examples/description+18 added
1#!/usr/bin/env node23/**4 * Module dependencies.5 */67var program = require('../');89program10 .version('0.0.1')11 .description('application simple description ')12 .option('-f, --foo', 'enable some foo')13 .option('-b, --bar', 'enable some bar')14 .option('-B, --baz', 'enable some baz')15 .parse(process.argv);1617if (!program.args.length) program.help();18
modified:index.js+9 added-2 removed
896 unmodified lines
897 * @api private898 */899900Command.prototype.helpInformation = function() {901 return [901 var desc = [];902 if (this._description) {903 desc = [904 ''905 , ' Description: ' + this._description]906 }907908 return desc.concat([909 ''910 , ' Usage: ' + this._name911 + (this._alias912 ? '|' + this._alias
4 unmodified lines
917 , ''918 , '' + this.optionHelp().replace(/^/gm, ' ')919 , ''920 , ''914 ].join('\n');921 ]).join('\n');922};923924/**925 * Output help information for this command
81 unmodified lines