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?
I have a question about the expected behavior of jco transpile --instantiation.
The help shows:
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)However, in practice -I without a value results in an error because the next argument is treated as the mode:
Is this the expected behavior?