Bug 244111 - Improve "invalid option" error message for malformed flags
Summary: Improve "invalid option" error message for malformed flags
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Enhancement
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-08-18 17:18 PDT by Tim Chevalier
Modified: 2022-08-25 17:19 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Chevalier 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.
Comment 1 Radar WebKit Bug Importer 2022-08-25 17:19:15 PDT
<rdar://problem/99162851>