Skip to content

Commit

Permalink
fix(cli)!: Ensure --use-start-section can only be used with compile…
Browse files Browse the repository at this point in the history
… command (grain-lang#1871)
  • Loading branch information
spotandjake committed Jul 1, 2023
1 parent fb8fbf2 commit d9227d7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cli/bin/grain.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,6 @@ class GrainCommand extends commander.Command {
"--wasi-polyfill <filename>",
"path to custom WASI implementation"
);
cmd.forwardOption(
"--use-start-section",
"replaces the _start export with a start section during linking"
);
cmd.forwardOption(
"--no-pervasives",
"don't automatically import the Grain Pervasives module"
Expand Down Expand Up @@ -194,6 +190,10 @@ program
.command("compile <file>")
.description("compile a grain program into wasm")
.forwardOption("-o <filename>", "output filename")
.forwardOption(
"--use-start-section",
"replaces the _start export with a start section during linking"
)
.forwardOption("--no-link", "disable static linking")
.action(exec.grainc);

Expand Down

0 comments on commit d9227d7

Please sign in to comment.