File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1099,9 +1099,9 @@ Expecting one of '${allowedValues.join("', '")}'`);
1099
1099
}
1100
1100
1101
1101
// Fallback to parsing the help flag to invoke the help.
1102
- if ( this . _helpOption . long ) {
1103
- return this . _dispatchSubcommand ( subcommandName , [ ] , [ this . _helpOption . long ] ) ;
1104
- }
1102
+ return this . _dispatchSubcommand ( subcommandName , [ ] , [
1103
+ this . _helpOption . long || this . _helpOption . short
1104
+ ] ) ;
1105
1105
}
1106
1106
1107
1107
/**
@@ -1842,7 +1842,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
1842
1842
*
1843
1843
* You can optionally supply the flags and description to override the defaults.
1844
1844
*
1845
- * @param {string } [ str]
1845
+ * @param {string } str
1846
1846
* @param {string } [flags]
1847
1847
* @param {string } [description]
1848
1848
* @return {this | string } `this` command for chaining, or version string if no arguments
Original file line number Diff line number Diff line change @@ -293,7 +293,7 @@ export class Command {
293
293
*
294
294
* You can optionally supply the flags and description to override the defaults.
295
295
*/
296
- version ( str ? : string , flags ?: string , description ?: string ) : this;
296
+ version ( str : string , flags ?: string , description ?: string ) : this;
297
297
298
298
/**
299
299
* Define a command, implemented using an action handler.
You can’t perform that action at this time.
0 commit comments