Describe the bug
If cdk flags is run with only --set, or only --set --recommended it should require option --all or --unconfigured.
Currently, the commands below complete but don't do anything:
cdk flag --unstable=flags --set
cdk flags --unstable=flags --set --recommended
Regression Issue
Last Known Working CDK Version
No response
Expected Behavior
Command failure at yargs.
Current Behavior
Command completes as a no-op.
Reproduction Steps
# In your CDK app directory, run the command below
cdk flags --unstable=flags --set --recommended
or the following
cdk flag --unstable=flags --set
Possible Solution
Validation at yargs to ensure that --set is run with additional options.
Additional Information/Context
No response
CDK CLI Version
2.1027.0 (build 5fc1b13)
Framework Version
No response
Node.js Version
20.19.4
OS
MacOS 15.6 (24G84)
Language
TypeScript
Language Version
No response
Other information
No response
Describe the bug
If cdk flags is run with only
--set, or only--set --recommendedit should require option--allor--unconfigured.Currently, the commands below complete but don't do anything:
Regression Issue
Last Known Working CDK Version
No response
Expected Behavior
Command failure at
yargs.Current Behavior
Command completes as a no-op.
Reproduction Steps
# In your CDK app directory, run the command below cdk flags --unstable=flags --set --recommended or the following cdk flag --unstable=flags --setPossible Solution
Validation at
yargsto ensure that --set is run with additional options.Additional Information/Context
No response
CDK CLI Version
2.1027.0 (build 5fc1b13)
Framework Version
No response
Node.js Version
20.19.4
OS
MacOS 15.6 (24G84)
Language
TypeScript
Language Version
No response
Other information
No response