[ELF] Enforce double-dash form for --color-diagnostics/--rsp-quoting/--symbol-orderin...
authorFangrui Song <i@maskray.me>
Thu, 6 Jan 2022 09:02:14 +0000 (01:02 -0800)
committerFangrui Song <i@maskray.me>
Thu, 6 Jan 2022 09:02:14 +0000 (01:02 -0800)
commit6e4bbbfcc8327465440da38d86f1f4b37d452e43
tree2a312cefe97b681af83532324a71ae932526cef6
parentc41aa41957c102fdbe1e92c31fd1aec1c5fccbd5
[ELF] Enforce double-dash form for --color-diagnostics/--rsp-quoting/--symbol-ordering-file

They are LLD-specific and by convention we enforce the double-dash form to avoid
collision with short options (e.g. weird `-c olor-diagnostics` interpretation in
GNU ld). They are rarely used and to the best of my investigation the undesired
single-dash forms are not used in the wild.
lld/ELF/Options.td
lld/test/ELF/color-diagnostics.test