-
Notifications
You must be signed in to change notification settings - Fork 96
Open
Labels
bugSomething isn't workingSomething isn't workingdxDeveloper eXperienceDeveloper eXperiencegood first issueGood for newcomersGood for newcomersproject/jco
Description
I have a question about the expected behavior of jco transpile --instantiation.
The help shows:
-I, --instantiation [mode]
output for custom module instantiation (choices: "async", "sync", preset: "async")
From this, I expected the behavior to be:
-I async=> generate instantiate function (async)-I sync=> generate instantiate function (sync)-I=> generate instantiate function (async)- (no -I) => ESM output
However, in practice -I without a value results in an error because the next argument is treated as the mode:
$ jco transpile ... -I foo.wasm
error: option '-I, --instantiation [mode]' argument 'foo.wasm' is invalid. Allowed choices are async, sync.
Is this the expected behavior?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingdxDeveloper eXperienceDeveloper eXperiencegood first issueGood for newcomersGood for newcomersproject/jco