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.
version
1 parent abe662b commit 702d41aCopy full SHA for 702d41a
1 file changed
src/Command.ts
@@ -180,9 +180,12 @@ class Command {
180
})
181
}
182
183
- const options = this.isGlobalCommand
+ let options = this.isGlobalCommand
184
? globalOptions
185
: [...this.options, ...(globalOptions || [])]
186
+ if (!this.isGlobalCommand) {
187
+ options = options.filter((option) => option.name !== 'version')
188
+ }
189
if (options.length > 0) {
190
const longestOptionName = findLongest(
191
options.map((option) => option.rawName)
0 commit comments