We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4fc92a commit 12fd0e6Copy full SHA for 12fd0e6
index.js
@@ -93,7 +93,7 @@ function storeOption({
93
throw new ERR_UNKNOWN_OPTION(shortOption == null ? `--${longOption}` : `-${shortOption}`);
94
}
95
96
- const shortOptionErr = optionConfig.short ? `-${optionConfig.short}, ` : '';
+ const shortOptionErr = ObjectHasOwn(optionConfig, 'short') ? `-${optionConfig.short}, ` : '';
97
98
if (options[longOption].type === 'string' && optionValue == null) {
99
throw new ERR_INVALID_OPTION_VALUE(`Option '${shortOptionErr}--${longOption} <${longOption}>' argument missing`);
0 commit comments