You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[wasm] Host should separate arguments for engine, mono and application #88760
Possible designs
A) use multiple -- to separate it node --enable-source-maps main.js -- hello.dll --setenv=XXX=1 -- -fromCity=Prague to Ilona
--enable-source-maps is nodeJS engine flag --setenv=XXX=1 is mono engine flag -fromCity=Prague is application argument to is application arg Ilona is application arg
dotnet run --engine=node -- --enable-source-maps main.js -- hello.dll --setenv=XXX=1 -- -fromCity=Prague to Ilona
this assumes that main.js which is user will call .withRuntimeOptionsFromArguments() to consume it.
B) use well know pass-thru arguments
wasmtime run --env MONO_OPTIONS="values" dotnet.wasm
dotnet run --engine=wasmtime --engine-arg='--env MONO_OPTIONS="values"' dotnet.wasm
escaping becomes nasty.
Also, from #85674 (comment) Perhaps there should be pass-thru argument like --host:xxx=yyyand--runtime:aaa=bbbbefore application -- ? As an alternative to multiple -- .
Activity
radical commentedon Aug 14, 2023
Moving this to 9.0, so we can get an agreement on how this should be done, as it should be consistent with how
dotnet runhandles these kinda cases.pavelsavara commentedon Nov 20, 2023
cc @richlander