diff --git a/src/util/cache-command.ts b/src/util/cache-command.ts index a49f92d5c..6d48dbdbd 100644 --- a/src/util/cache-command.ts +++ b/src/util/cache-command.ts @@ -29,6 +29,7 @@ async function cacheFlags( deprecateAliases: flag.deprecateAliases, deprecated: flag.deprecated, description: flag.description, + env: flag.env, exclusive: flag.exclusive, helpGroup: flag.helpGroup, helpLabel: flag.helpLabel, diff --git a/test/util/cache-command.test.ts b/test/util/cache-command.test.ts index 685bd8647..718952641 100644 --- a/test/util/cache-command.test.ts +++ b/test/util/cache-command.test.ts @@ -32,6 +32,7 @@ describe('cacheCommand', () => { char: 'c', min: 1, max: 10, + env: 'FLAGC', required: false, description: 'flagc desc', options: ['a', 'b'], @@ -77,6 +78,7 @@ describe('cacheCommand', () => { dependsOn: undefined, deprecateAliases: undefined, deprecated: undefined, + env: undefined, exclusive: undefined, helpGroup: undefined, helpLabel: undefined, @@ -97,6 +99,7 @@ describe('cacheCommand', () => { dependsOn: undefined, deprecateAliases: undefined, deprecated: undefined, + env: undefined, exclusive: undefined, helpGroup: undefined, helpLabel: undefined, @@ -124,6 +127,7 @@ describe('cacheCommand', () => { deprecateAliases: undefined, deprecated: undefined, description: 'flagc desc', + env: 'FLAGC', exclusive: undefined, helpGroup: undefined, helpLabel: undefined, @@ -203,6 +207,7 @@ describe('cacheCommand', () => { char: undefined, summary: undefined, description: 'Format output as json.', + env: undefined, hidden: undefined, required: undefined, helpLabel: undefined, @@ -223,6 +228,7 @@ describe('cacheCommand', () => { char: undefined, summary: undefined, description: undefined, + env: undefined, hidden: undefined, required: undefined, helpLabel: undefined, @@ -243,6 +249,7 @@ describe('cacheCommand', () => { char: undefined, summary: undefined, description: undefined, + env: undefined, hidden: undefined, required: undefined, helpLabel: undefined,