docs
docs copied to clipboard
Wasm Binding: Reading commandline args
What content needs to be created or modified?
The existing documentation on Wasm Binding writes that a Wasm program can be invoked with "commandline args or environment variables to it".
I compiled my C# program into Wasm and tried to obtain the commandline args using the following code, and all options failed to work (I'm still not sure how to get it to work):
-
Environment.GetEnvironmentVariables()
-
Environment.GetCommandLineArgs()
-
args
-
Console.In.ReadLine()
I'm using the request body located at the end of the documentation.
Describe the solution you'd like
Having examples of how to read these commandline args in various languages, including C#.