Pulled from the CLI rewrite.
Also writes all user-facing messages to stderr, as primary program output goes in stdout (we don't have any as output is written to a file).
NOTE: Yes we are writing debug messages to stderr. The new CLI does this because unix mode will write wasm binaries to stdout unless otherwise specified. Does it matter in this PR? No, it will be overwritten by the other PR anyway.
Closes #68.
Pulled from the CLI rewrite. Also writes all user-facing messages to stderr, as primary program output goes in stdout (we don't have any as output is written to a file).
NOTE: Yes we are writing debug messages to stderr. The new CLI does this because unix mode will write wasm binaries to stdout unless otherwise specified. Does it matter in this PR? No, it will be overwritten by the other PR anyway.