Bug 244111

Summary: Improve "invalid option" error message for malformed flags
Product: WebKit Reporter: Tim Chevalier <tjc>
Component: JavaScriptCoreAssignee: 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
Reported 2022-08-18 17:18:09 PDT
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
Radar WebKit Bug Importer
Comment 1 2022-08-25 17:19:15 PDT
Note You need to log in before you can comment on or make changes to this bug.