Skip to content
Myr

removed .description()

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 aa1c705 · Browse files · 6 files+3 added−10 removed
This commit

State

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

Diff stats

6 files+3 added−10 removed

  • other:+3 added−10 removed

6 files+3 added−10 removed

modified:examples/coercion-1 removed
14 unmodified lines
15}1617program18 .version('0.0.1')19 .description('Pizza configurator')19 .option('-i, --integer <n>', 'An integer argument', parseInt)20 .option('-f, --float <n>', 'A float argument', parseFloat)21 .option('-r, --range <a>..<b>', 'A range', range)22 .option('-l, --list <items>', 'A list', list)
10 unmodified lines
modified:examples/confirm+3 added
4 unmodified lines
5 */67var program = require('../');89program10 .parse(process.argv);1112program.confirm('continue? ', function(ok){13 console.log(' got %j', ok);14 process.stdin.destroy();15});
modified:examples/deploy-1 removed
6 unmodified lines
7var program = require('../');89program10 .version('0.0.1')11 .description('application deployer')11 .option('-C, --chdir <path>', 'change the working directory')12 .option('-c, --config <path>', 'set config path. defaults to ./deploy.conf')13 .option('-T, --no-tests', 'ignore test hook')14
24 unmodified lines
modified:examples/express-1 removed
6 unmodified lines
7var program = require('../');89program10 .version('0.0.1')11 .description('Express application generator')11 .option('-s, --sessions', 'add session support')12 .option('-t, --template <engine>', 'specify template engine (jade|ejs) [jade]')13 .option('-c, --css <engine>', 'specify stylesheet engine (stylus|sass|less) [css]')14 .parse(process.argv);
modified:examples/pizza-1 removed
6 unmodified lines
7var program = require('../');89program10 .version('0.0.1')11 .description('Pizza configurator')11 .option('-p, --peppers', 'Add peppers')12 .option('-P, --pineapple', 'Add pineappe')13 .option('-b, --bbq', 'Add bbq sauce')14 .option('-c, --cheese <type>', 'Add the specified type of cheese [cheddar]')
13 unmodified lines
modified:lib/commander.js-6 removed
271 unmodified lines
272 });273 return this;274};275276Command.prototype.description = function(str){277 if (0 == arguments.length) return this._description;278 this._description = str;279 return this;280};281276Command.prototype.usage = function(str){277 if (0 == arguments.length) return this._usage || '[options]';278 this._usage = str;279 return this;
130 unmodified lines