Skip to content
Myr

docs

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 d439ecd · Browse files · 1 file+11 added−0 removed
This commit

State

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

Diff stats

1 file+11 added−0 removed

  • other:+11 added−0 removed

1 file+11 added−0 removed

modified:lib/commander.js+11 added
207 unmodified lines
208 });209 return this;210};211212/**213 * Define option with `flags`, `description` and optional214 * coercion `fn`.215 *216 * @param {String} flags217 * @param {String} description218 * @param {Function} fn219 * @return {Command} for chaining220 * @api public221 */222223Command.prototype.option = function(flags, description, fn){224 var self = this225 , option = new Option(flags, description)226 , name = option.name();
297 unmodified lines