Skip to content
Myr

#330 make .option defaultValue and fn and .version flag optional

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

authored by twk-b · committed by Roman Vanesyan · parent d674384 · Browse files · 1 file+3 added−3 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+3 added−3 removed

  • other:+3 added−3 removed

1 file+3 added−3 removed

modified:index.js+3 added-3 removed
348 unmodified lines
349 * program.option('-c, --cheese [type]', 'add cheese [marble]');350 *351 * @param {String} flags352 * @param {String} description353 * @param {Function|Mixed} fn or default354 * @param {Mixed} defaultValue353 * @param {Function|*} [fn] or default354 * @param {*} [defaultValue]355 * @return {Command} for chaining356 * @api public357 */358
463 unmodified lines
822 * This method auto-registers the "-V, --version" flag823 * which will print the version number when passed.824 *825 * @param {String} str826 * @param {String} flags826 * @param {String} [flags]827 * @return {Command} for chaining828 * @api public829 */830
299 unmodified lines