Skip to content
Myr

Improve JSDoc to match code

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

authored by John Gee · committed by John Gee · parent 03e77df · Browse files · 1 file+11 added−11 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−11 removed

  • other:+11 added−11 removed

1 file+11 added−11 removed

modified:index.js+11 added-11 removed
113 unmodified lines
114115/**116 * Initialize a new `Command`.117 *118 * @param {String} name118 * @param {String} [name]119 * @api public120 */121122function Command(name) {
570 unmodified lines
693 *694 * @param {Array} argv695 * @param {Array} args696 * @param {Array} unknown697 * @param {String} specifySubcommand697 * @param {String} executableFile698 * @api private699 */700701Command.prototype.executeSubCommand = function(argv, args, unknown, executableFile) {
224 unmodified lines
926 * Parse options from `argv` returning `argv`927 * void of these options.928 *929 * @param {Array} argv930 * @return {Array}930 * @return {{args: Array, unknown: Array}}931 * @api public932 */933934Command.prototype.parseOptions = function(argv) {
103 unmodified lines
10381039/**1040 * `Option` is missing an argument, but received `flag` or nothing.1041 *1042 * @param {String} option1043 * @param {String} flag1042 * @param {Option} option1043 * @param {String} [flag]1044 * @api private1045 */10461047Command.prototype.optionMissingArgument = function(option, flag) {
9 unmodified lines
10571058/**1059 * `Option` does not have a value, and is a mandatory option.1060 *1061 * @param {String} option1061 * @param {Option} option1062 * @api private1063 */10641065Command.prototype.missingMandatoryOptionValue = function(option) {
63 unmodified lines
1129/**1130 * Set the description to `str`.1131 *1132 * @param {String} str1133 * @param {Object} argsDescription1133 * @param {Object} [argsDescription]1134 * @return {String|Command}1135 * @api public1136 */1137
28 unmodified lines
11661167/**1168 * Set / get the command usage `str`.1169 *1170 * @param {String} str1170 * @param {String} [str]1171 * @return {String|Command}1172 * @api public1173 */1174
14 unmodified lines
11891190/**1191 * Get or set the name of the command1192 *1193 * @param {String} str1193 * @param {String} [str]1194 * @return {String|Command}1195 * @api public1196 */1197
337 unmodified lines
15351536/**1537 * Output help information if necessary1538 *1539 * @param {Command} command to output help for1540 * @param {Array} array of options to search for -h or --help1539 * @param {Command} cmd - command to output help for1540 * @param {Array} options - array of options to search for -h or --help1541 * @api private1542 */15431544function outputHelpIfNecessary(cmd, options) {
84 unmodified lines