Skip to content

Commit c989b76

Browse files
fix(codegen): fix detection of -s for generate-clients (#2588)
-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.
1 parent c2e88a4 commit c989b76

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scripts/generate-clients/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,12 @@ const {
3838
.alias("s", "server-artifacts")
3939
.boolean("s")
4040
.describe("s", "Generate server artifacts instead of client ones")
41-
.default("s", false)
4241
.conflicts("s", ["m", "g", "n"])
4342
.help().argv;
4443

4544
(async () => {
4645
try {
47-
if (serverOnly) {
46+
if (serverOnly === true) {
4847
await generateProtocolTests();
4948
await prettifyCode(CODE_GEN_PROTOCOL_TESTS_OUTPUT_DIR);
5049
await copyServerTests(CODE_GEN_PROTOCOL_TESTS_OUTPUT_DIR, PROTOCOL_TESTS_CLIENTS_DIR);

0 commit comments

Comments
 (0)