Skip to content

Commit d9227d7

Browse files
authored
fix(cli)!: Ensure --use-start-section can only be used with compile command (#1871)
1 parent fb8fbf2 commit d9227d7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cli/bin/grain.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,6 @@ class GrainCommand extends commander.Command {
143143
"--wasi-polyfill <filename>",
144144
"path to custom WASI implementation"
145145
);
146-
cmd.forwardOption(
147-
"--use-start-section",
148-
"replaces the _start export with a start section during linking"
149-
);
150146
cmd.forwardOption(
151147
"--no-pervasives",
152148
"don't automatically import the Grain Pervasives module"
@@ -194,6 +190,10 @@ program
194190
.command("compile <file>")
195191
.description("compile a grain program into wasm")
196192
.forwardOption("-o <filename>", "output filename")
193+
.forwardOption(
194+
"--use-start-section",
195+
"replaces the _start export with a start section during linking"
196+
)
197197
.forwardOption("--no-link", "disable static linking")
198198
.action(exec.grainc);
199199

0 commit comments

Comments
 (0)