Commit 8fc0642
authored
Fix parsing of the
This patch fixes a bug in the CLI option parser that parses the argument
to `--eval` twice, causing runtime initialization to interpret the
argument as a script path, rather than an inline script. This is
currently causing an example invocation in the README to fail:
```
wasmtime -S http starling.wasm -e "console.log('hello world')"
ReferenceError: Error loading module "console.log('hello world')"
(resolved path "console.log('hello world')"): No such file or directory
```--eval CLI option (#237)1 parent 6ecaa72 commit 8fc0642
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
81 | | - | |
| 80 | + | |
82 | 81 | | |
83 | 82 | | |
84 | 83 | | |
| |||
0 commit comments