Skip to content

Commit ca858fe

Browse files
authored
fix(cli): omit flags that aren't in preview from --help output COMPASS-8589 (#7415)
omit flags that aren't in preview from --help output
1 parent 42fd007 commit ca858fe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/compass-preferences-model/src/preferences-schema.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1295,6 +1295,8 @@ function featureFlagToPreferenceDefinition(
12951295
global: true,
12961296
ui: true,
12971297
description: featureFlag.description,
1298+
// Only show feature flags in 'preview' stage in --help output
1299+
omitFromHelp: featureFlag.stage !== 'preview',
12981300
// if a feature flag is 'released' it will always return true
12991301
// regardless of any persisted value.
13001302
deriveValue:

0 commit comments

Comments
 (0)