Skip to content

Commit 72e279b

Browse files
committed
Address comment and fix error
1 parent 0c9315a commit 72e279b

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

templates/keynote-2/src/opts.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,9 @@ class CLIParser {
107107
};
108108
break;
109109
case 'strings':
110+
if (options[name]?.length === 1 && options[name][0] === undefined) {
111+
options[name] = undefined;
112+
}
110113
parser = (s: string | string[]) =>
111114
(Array.isArray(s) ? s : s.split(',')).flat().map((s) => {
112115
const x = s.trim();
@@ -176,12 +179,7 @@ const args = new CLIParser()
176179
'SpacetimeDB module path',
177180
str('./spacetimedb', 'STDB_MODULE_PATH'),
178181
)
179-
.option(
180-
'--stdb-module-path <dir>',
181-
'SpacetimeDB module path',
182-
str('./spacetimedb', 'STDB_MODULE_PATH'),
183-
)
184-
.option('--stdb-confirmed-reads', 'Enable confirmed reads', {
182+
.option('--no-stdb-confirmed-reads', 'Disable confirmed reads', {
185183
env: 'STDB_CONFIRMED_READS',
186184
})
187185
.option('--use-docker', 'Use docker', { env: 'USE_DOCKER' })

0 commit comments

Comments
 (0)