RTS options parser silently accepts invalid flags
RTS options that do not take arguments (such as -T
) silently ignore anything that comes afterwards. For example, +RTS -T,-s
or +RTS -T-s
turns on collection of GC statistics (-T
) but does not print out a summary (-s
). Instead, this should produce an error message. Otherwise, users may mistakenly think that options have been applied.
(This has just bitten us in a production system.)
Trac metadata
Trac field | Value |
---|---|
Version | 7.8.3 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Runtime System |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | simonmar |
Operating system | |
Architecture |