@@ -11,8 +11,8 @@ class Option {
1111 /**
1212 * Initialize a new `Option` with the given `flags` and `description`.
1313 *
14- * @param {String } flags
15- * @param {String } description
14+ * @param {string } flags
15+ * @param {string } description
1616 * @api public
1717 */
1818
@@ -31,7 +31,7 @@ class Option {
3131 /**
3232 * Return option name.
3333 *
34- * @return {String }
34+ * @return {string }
3535 * @api private
3636 */
3737
@@ -43,7 +43,7 @@ class Option {
4343 * Return option name, in a camelcase format that can be used
4444 * as a object attribute key.
4545 *
46- * @return {String }
46+ * @return {string }
4747 * @api private
4848 */
4949
@@ -54,8 +54,8 @@ class Option {
5454 /**
5555 * Check if `arg` matches the short or long flag.
5656 *
57- * @param {String } arg
58- * @return {Boolean }
57+ * @param {string } arg
58+ * @return {boolean }
5959 * @api private
6060 */
6161
@@ -71,9 +71,9 @@ class Option {
7171class CommanderError extends Error {
7272 /**
7373 * Constructs the CommanderError class
74- * @param {Number } exitCode suggested exit code which could be used with process.exit
75- * @param {String } code an id string representing the error
76- * @param {String } message human-readable description of the error
74+ * @param {number } exitCode suggested exit code which could be used with process.exit
75+ * @param {string } code an id string representing the error
76+ * @param {string } message human-readable description of the error
7777 * @constructor
7878 */
7979 constructor ( exitCode , code , message ) {
@@ -90,7 +90,7 @@ class Command extends EventEmitter {
9090 /**
9191 * Initialize a new `Command`.
9292 *
93- * @param {String } [name]
93+ * @param {string } [name]
9494 * @api public
9595 */
9696
@@ -335,9 +335,9 @@ class Command extends EventEmitter {
335335 /**
336336 * Call process.exit, and _exitCallback if defined.
337337 *
338- * @param {Number } exitCode exit code for using with process.exit
339- * @param {String } code an id string representing the error
340- * @param {String } message human-readable description of the error
338+ * @param {number } exitCode exit code for using with process.exit
339+ * @param {string } code an id string representing the error
340+ * @param {string } message human-readable description of the error
341341 * @return never
342342 * @api private
343343 */
@@ -398,8 +398,8 @@ class Command extends EventEmitter {
398398 * Internal implementation shared by .option() and .requiredOption()
399399 *
400400 * @param {Object } config
401- * @param {String } flags
402- * @param {String } description
401+ * @param {string } flags
402+ * @param {string } description
403403 * @param {Function|* } [fn] - custom option processing function or default vaue
404404 * @param {* } [defaultValue]
405405 * @return {Command } for chaining
@@ -516,8 +516,8 @@ class Command extends EventEmitter {
516516 * // optional argument
517517 * program.option('-c, --cheese [type]', 'add cheese [marble]');
518518 *
519- * @param {String } flags
520- * @param {String } description
519+ * @param {string } flags
520+ * @param {string } description
521521 * @param {Function|* } [fn] - custom option processing function or default vaue
522522 * @param {* } [defaultValue]
523523 * @return {Command } for chaining
@@ -534,8 +534,8 @@ class Command extends EventEmitter {
534534 *
535535 * The `flags` string should contain both the short and long flags, separated by comma, a pipe or space.
536536 *
537- * @param {String } flags
538- * @param {String } description
537+ * @param {string } flags
538+ * @param {string } description
539539 * @param {Function|* } [fn] - custom option processing function or default vaue
540540 * @param {* } [defaultValue]
541541 * @return {Command } for chaining
@@ -549,7 +549,7 @@ class Command extends EventEmitter {
549549 /**
550550 * Allow unknown options on the command line.
551551 *
552- * @param {Boolean } arg if `true` or omitted, no error will be thrown
552+ * @param {Boolean } [ arg] - if `true` or omitted, no error will be thrown
553553 * for unknown options.
554554 * @api public
555555 */
@@ -592,7 +592,7 @@ class Command extends EventEmitter {
592592 /**
593593 * Store option value
594594 *
595- * @param {String } key
595+ * @param {string } key
596596 * @param {Object } value
597597 * @api private
598598 */
@@ -608,7 +608,7 @@ class Command extends EventEmitter {
608608 /**
609609 * Retrieve option value
610610 *
611- * @param {String } key
611+ * @param {string } key
612612 * @return {Object } value
613613 * @api private
614614 */
@@ -910,7 +910,7 @@ class Command extends EventEmitter {
910910 /**
911911 * Return an option matching `arg` if any.
912912 *
913- * @param {String } arg
913+ * @param {string } arg
914914 * @return {Option }
915915 * @api private
916916 */
@@ -1060,7 +1060,7 @@ class Command extends EventEmitter {
10601060 /**
10611061 * Argument `name` is missing.
10621062 *
1063- * @param {String } name
1063+ * @param {string } name
10641064 * @api private
10651065 */
10661066
@@ -1074,7 +1074,7 @@ class Command extends EventEmitter {
10741074 * `Option` is missing an argument, but received `flag` or nothing.
10751075 *
10761076 * @param {Option } option
1077- * @param {String } [flag]
1077+ * @param {string } [flag]
10781078 * @api private
10791079 */
10801080
@@ -1105,7 +1105,7 @@ class Command extends EventEmitter {
11051105 /**
11061106 * Unknown option `flag`.
11071107 *
1108- * @param {String } flag
1108+ * @param {string } flag
11091109 * @api private
11101110 */
11111111
@@ -1119,7 +1119,7 @@ class Command extends EventEmitter {
11191119 /**
11201120 * Unknown command.
11211121 *
1122- * @param {String } flag
1122+ * @param {string } flag
11231123 * @api private
11241124 */
11251125
@@ -1142,9 +1142,9 @@ class Command extends EventEmitter {
11421142 *
11431143 * You can optionally supply the flags and description to override the defaults.
11441144 *
1145- * @param {String } str
1146- * @param {String } [flags]
1147- * @param {String } [description]
1145+ * @param {string } str
1146+ * @param {string } [flags]
1147+ * @param {string } [description]
11481148 * @return {Command } for chaining
11491149 * @api public
11501150 */
@@ -1167,7 +1167,7 @@ class Command extends EventEmitter {
11671167 /**
11681168 * Set the description to `str`.
11691169 *
1170- * @param {String } str
1170+ * @param {string } str
11711171 * @param {Object } [argsDescription]
11721172 * @return {String|Command }
11731173 * @api public
@@ -1183,7 +1183,7 @@ class Command extends EventEmitter {
11831183 /**
11841184 * Set an alias for the command
11851185 *
1186- * @param {String } alias
1186+ * @param {string } alias
11871187 * @return {String|Command }
11881188 * @api public
11891189 */
@@ -1205,7 +1205,7 @@ class Command extends EventEmitter {
12051205 /**
12061206 * Set / get the command usage `str`.
12071207 *
1208- * @param {String } [str]
1208+ * @param {string } [str]
12091209 * @return {String|Command }
12101210 * @api public
12111211 */
@@ -1228,7 +1228,7 @@ class Command extends EventEmitter {
12281228 /**
12291229 * Get or set the name of the command
12301230 *
1231- * @param {String } [str]
1231+ * @param {string } [str]
12321232 * @return {String|Command }
12331233 * @api public
12341234 */
@@ -1272,7 +1272,7 @@ class Command extends EventEmitter {
12721272 /**
12731273 * Return the largest command length.
12741274 *
1275- * @return {Number }
1275+ * @return {number }
12761276 * @api private
12771277 */
12781278
@@ -1286,7 +1286,7 @@ class Command extends EventEmitter {
12861286 /**
12871287 * Return the largest option length.
12881288 *
1289- * @return {Number }
1289+ * @return {number }
12901290 * @api private
12911291 */
12921292
@@ -1304,7 +1304,7 @@ class Command extends EventEmitter {
13041304 /**
13051305 * Return the largest arg length.
13061306 *
1307- * @return {Number }
1307+ * @return {number }
13081308 * @api private
13091309 */
13101310
@@ -1317,7 +1317,7 @@ class Command extends EventEmitter {
13171317 /**
13181318 * Return the pad width.
13191319 *
1320- * @return {Number }
1320+ * @return {number }
13211321 * @api private
13221322 */
13231323
@@ -1341,7 +1341,7 @@ class Command extends EventEmitter {
13411341 /**
13421342 * Return help for options.
13431343 *
1344- * @return {String }
1344+ * @return {string }
13451345 * @api private
13461346 */
13471347
@@ -1363,7 +1363,7 @@ class Command extends EventEmitter {
13631363 /**
13641364 * Return command help documentation.
13651365 *
1366- * @return {String }
1366+ * @return {string }
13671367 * @api private
13681368 */
13691369
@@ -1389,7 +1389,7 @@ class Command extends EventEmitter {
13891389 /**
13901390 * Return program help documentation.
13911391 *
1392- * @return {String }
1392+ * @return {string }
13931393 * @api public
13941394 */
13951395
@@ -1472,8 +1472,8 @@ class Command extends EventEmitter {
14721472 * You can pass in flags and a description to override the help
14731473 * flags and help description for your command.
14741474 *
1475- * @param {String } [flags]
1476- * @param {String } [description]
1475+ * @param {string } [flags]
1476+ * @param {string } [description]
14771477 * @return {Command }
14781478 * @api public
14791479 */
@@ -1535,8 +1535,8 @@ exports.CommanderError = CommanderError;
15351535/**
15361536 * Camel-case the given `flag`
15371537 *
1538- * @param {String } flag
1539- * @return {String }
1538+ * @param {string } flag
1539+ * @return {string }
15401540 * @api private
15411541 */
15421542
@@ -1549,9 +1549,9 @@ function camelcase(flag) {
15491549/**
15501550 * Pad `str` to `width`.
15511551 *
1552- * @param {String } str
1553- * @param {Number } width
1554- * @return {String }
1552+ * @param {string } str
1553+ * @param {number } width
1554+ * @return {string }
15551555 * @api private
15561556 */
15571557
@@ -1564,10 +1564,10 @@ function pad(str, width) {
15641564 * Wraps the given string with line breaks at the specified width while breaking
15651565 * words and indenting every but the first line on the left.
15661566 *
1567- * @param {String } str
1568- * @param {Number } width
1569- * @param {Number } indent
1570- * @return {String }
1567+ * @param {string } str
1568+ * @param {number } width
1569+ * @param {number } indent
1570+ * @return {string }
15711571 * @api private
15721572 */
15731573function wrap ( str , width , indent ) {
@@ -1586,10 +1586,10 @@ function wrap(str, width, indent) {
15861586 * while indenting with indent spaces. Do not wrap if insufficient width or
15871587 * string is manually formatted.
15881588 *
1589- * @param {String } str
1590- * @param {Number } width
1591- * @param {Number } indent
1592- * @return {String }
1589+ * @param {string } str
1590+ * @param {number } width
1591+ * @param {number } indent
1592+ * @return {string }
15931593 * @api private
15941594 */
15951595function optionalWrap ( str , width , indent ) {
@@ -1624,7 +1624,7 @@ function outputHelpIfRequested(cmd, args) {
16241624 * Takes an argument and returns its human readable equivalent for help usage.
16251625 *
16261626 * @param {Object } arg
1627- * @return {String }
1627+ * @return {string }
16281628 * @api private
16291629 */
16301630
0 commit comments