Comparing version 6.7.8 to 6.7.9
@@ -156,3 +156,3 @@ import CAC from "./CAC.ts"; | ||
if (!this.isGlobalCommand) { | ||
if (!this.isGlobalCommand && !this.isDefaultCommand) { | ||
options = options.filter(option => option.name !== 'version'); | ||
@@ -159,0 +159,0 @@ } |
@@ -355,3 +355,3 @@ 'use strict'; | ||
let options = this.isGlobalCommand ? globalOptions : [...this.options, ...globalOptions || []]; | ||
if (!this.isGlobalCommand) { | ||
if (!this.isGlobalCommand && !this.isDefaultCommand) { | ||
options = options.filter((option) => option.name !== "version"); | ||
@@ -358,0 +358,0 @@ } |
{ | ||
"name": "cac", | ||
"version": "6.7.8", | ||
"version": "6.7.9", | ||
"description": "Simple yet powerful framework for building command-line apps.", | ||
@@ -5,0 +5,0 @@ "repository": { |
Sorry, the diff of this file is not supported yet
81697