Skip to content

Commit

Permalink
fix(codegen): fix detection of -s for generate-clients (#2588)
Browse files Browse the repository at this point in the history
-s/--server-artifacts having a default value makes it see conflicts with
-m/-n/-g even if the caller did not specify them. Removing the default
fixes this.
  • Loading branch information
adamthom-amzn committed Jul 16, 2021
1 parent c2e88a4 commit c989b76
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/generate-clients/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,12 @@ const {
.alias("s", "server-artifacts")
.boolean("s")
.describe("s", "Generate server artifacts instead of client ones")
.default("s", false)
.conflicts("s", ["m", "g", "n"])
.help().argv;

(async () => {
try {
if (serverOnly) {
if (serverOnly === true) {
await generateProtocolTests();
await prettifyCode(CODE_GEN_PROTOCOL_TESTS_OUTPUT_DIR);
await copyServerTests(CODE_GEN_PROTOCOL_TESTS_OUTPUT_DIR, PROTOCOL_TESTS_CLIENTS_DIR);
Expand Down

0 comments on commit c989b76

Please sign in to comment.