Skip to content

Commit 288b36b

Browse files
authored
TA-4137: Fix beta tagging always showing the notice (#245)
1 parent 9caeb11 commit 288b36b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@celonis/content-cli",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"description": "CLI Tool to help manage content in Celonis Platform",
55
"main": "content-cli.js",
66
"bin": {

src/core/command/module-handler.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,8 +237,10 @@ export class CommandConfig {
237237
if ((this.cmd as any).isBeta) {
238238
return;
239239
}
240+
const providedOptions = this.cmd.opts();
240241
for (const option of this.cmd.options) {
241-
if ((option as any).isBeta) {
242+
const optionName = option.attributeName();
243+
if ((option as any).isBeta && Object.hasOwn(providedOptions, optionName)) {
242244
logger.info(chalk.yellow(`The option '${option.long}' is in beta and may change in future releases.`));
243245
}
244246
}

0 commit comments

Comments
 (0)