cdk: cdk CLI should abort in case an invalid option is provided #27723
Labels
cli
Issues related to the CDK CLI
effort/small
Small work item – less than a day of effort
feature-request
A feature should be added or improved.
p2
package/tools
Related to AWS CDK Tools or CLI
Describe the bug
cdk COMMAND
should fail in case a provided option is not known.For example
cdk synth --foo-bar
orcdk synth --output-file out.json
should fail so that the user is able to spot a mistake in the command.Expected Behavior
The command should fail in case a specified option is unknown.
Current Behavior
The command ignores the failure and proceeds, the mistyped or unknown option is ignored.
In case of typos, the user will realize later, only after some investigation.
Reproduction Steps
Run
cdk synth --foo-bar
or any command with an unknown/mistyped command line option.Possible Solution
Implement a check in case of invalid options, or at least a big warning so that the user can notice the issue.
Additional Information/Context
No response
CDK CLI Version
any, but tested with cdk 2.101.0.
Framework Version
No response
Node.js Version
any
OS
macos
Language
TypeScript, Python, .NET, Java, Go
Language Version
No response
Other information
No response
The text was updated successfully, but these errors were encountered: