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
Provenance
- Commit
4faad59- Tree
5490f2f- Author
John Gee <john@ruru.gen.nz>- Committer
John Gee <john@ruru.gen.nz>- Parent
03e77df
1 file changed+11 added−11 removed
modified:index.js+11 added-11 removed
113 unmodified lines114 115 /**116 * Initialize a new `Command`.117 *118- * @param {String} name118+ * @param {String} [name]119 * @api public120 */121 122 function Command(name) {570 unmodified lines693 *694 * @param {Array} argv695 * @param {Array} args696 * @param {Array} unknown697- * @param {String} specifySubcommand697+ * @param {String} executableFile698 * @api private699 */700 701 Command.prototype.executeSubCommand = function(argv, args, unknown, executableFile) {224 unmodified lines926 * 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 */933 934 Command.prototype.parseOptions = function(argv) {103 unmodified lines1038 1039 /**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 */1046 1047 Command.prototype.optionMissingArgument = function(option, flag) {9 unmodified lines1057 1058 /**1059 * `Option` does not have a value, and is a mandatory option.1060 *1061- * @param {String} option1061+ * @param {Option} option1062 * @api private1063 */1064 1065 Command.prototype.missingMandatoryOptionValue = function(option) {63 unmodified lines1129 /**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 lines1166 1167 /**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 lines1189 1190 /**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 lines1535 1536 /**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 */1543 1544 function outputHelpIfNecessary(cmd, options) {84 unmodified lines