Bug 244111
| Summary: | Improve "invalid option" error message for malformed flags | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Tim Chevalier <tjc> |
| Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Enhancement | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | All | ||
| OS: | All | ||
Tim Chevalier
I found the following error message to be confusing:
```
[📦🌐🐱 org.webkit.Sdk GTK@Debug WebKit]$ WebKitBuild/GTK/Debug/bin/jsc -m JSTests/wasm/gc/arrays.js --useWebAssemblyGC
ERROR: invalid option: --useWebAssemblyGC
```
Eventually I figured out that the flag needs to be `--useWebAssemblyGC=true`. It would be nice if, in general, rather than just "invalid option", the error message included a hint about what the argument for the flag should be.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/99162851>