Skip to content

Commit 0757f67

Browse files
authored
chore: remove strict check on command arguments (#23927)
As part of #23907 I updated the dependency on `@types/yargs` to be in the `15` major version to reflect the version we use in the rest of the repo. Version `15` did not have the `strictOptions` yargs method so I attempted to enable `strict()` and disable `strictCommands` but it looks like that doesn't work. Removing strict altogether. Our only other option is to keep `@types/yargs` pinned at `17.0.15` since `17.0.16` is no longer compatible with our version of typescript. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent ec73c39 commit 0757f67

File tree

3 files changed

+0
-6
lines changed

3 files changed

+0
-6
lines changed

packages/@aws-cdk-testing/cli-integ/bin/query-github.ts

-2
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ async function main() {
2424
requiresArg: true,
2525
}))
2626
.demandCommand()
27-
.strict()
28-
.strictCommands(false)
2927
.help()
3028
.showHelpOnFail(false)
3129
.argv;

packages/@aws-cdk-testing/cli-integ/bin/run-suite.ts

-2
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,6 @@ async function main() {
6262
requiresArg: false,
6363
})
6464
.help()
65-
.strict()
66-
.strictCommands(false)
6765
.showHelpOnFail(false)
6866
.argv;
6967

packages/@aws-cdk-testing/cli-integ/bin/stage-distribution.ts

-2
Original file line numberDiff line numberDiff line change
@@ -143,8 +143,6 @@ async function main() {
143143
})
144144
.demandCommand(1, 'You must supply a command')
145145
.help()
146-
.strict()
147-
.strictCommands(false)
148146
.showHelpOnFail(false)
149147
.parse();
150148
}

0 commit comments

Comments
 (0)