You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DebugFlags::apply in src/flags.rs recognizes tokens, ast, ir, mc, hex, and all, but its fallback branch silently ignores every other value. src/cli.rs accepts both --debug-wave=<value> and --debug-wave <value> without checking whether every requested mode was recognized.
A typo such as --debug-wave=toknes therefore succeeds while enabling nothing, which makes the command line appear valid even though the requested diagnostic mode was not applied.
Scope
Reject unknown debug modes with a normal CLI usage error.
Preserve comma-separated valid modes and all.
When a list mixes valid and invalid values, report the invalid value instead of partially accepting the option silently.
Keep the existing debug modes and their behavior unchanged.
Completion criteria
CLI tests cover a valid single mode, a valid comma-separated list, an unknown mode, and a mixed valid/invalid list.
Both --debug-wave=value and --debug-wave value use the same validation.
Invalid input exits through the existing usage-error path.
Activity