Skip to content

Commit 00af603

Browse files
committed
Merge branch 'develop' into release/14.x
2 parents f6302de + fe4bedb commit 00af603

File tree

4 files changed

+97
-96
lines changed

4 files changed

+97
-96
lines changed

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
node-version: [18.x, 20.x, 22.x]
15+
node-version: [20.x, 22.x, 24.x]
1616
os: [ubuntu-latest, windows-latest, macos-latest]
1717

1818
steps:

lib/command.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -324,16 +324,16 @@ class Command extends EventEmitter {
324324
*
325325
* @param {string} name
326326
* @param {string} [description]
327-
* @param {(Function|*)} [fn] - custom argument processing function
327+
* @param {(Function|*)} [parseArg] - custom argument processing function or default value
328328
* @param {*} [defaultValue]
329329
* @return {Command} `this` command for chaining
330330
*/
331-
argument(name, description, fn, defaultValue) {
331+
argument(name, description, parseArg, defaultValue) {
332332
const argument = this.createArgument(name, description);
333-
if (typeof fn === 'function') {
334-
argument.default(defaultValue).argParser(fn);
333+
if (typeof parseArg === 'function') {
334+
argument.default(defaultValue).argParser(parseArg);
335335
} else {
336-
argument.default(fn);
336+
argument.default(parseArg);
337337
}
338338
this.addArgument(argument);
339339
return this;

package-lock.json

Lines changed: 89 additions & 89 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)