Currently -W and --wide are treated as two options as they are only included for gnu readelf compatibility and ignored. This change makes -W an alias of --wide to be consistent with other option aliases.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
We've got some downstream code that intends to iterate over all possibly specified options, regardless of their eventual impact on the behaviour of the tool. Without this change, the "W" and "wide" options would appear as separate entries, unlike other aliases, which is not desirable.
Plus, as @gbreynoo pointed out, this ensures consistency - in llvm-objdump the same options are aliases, rather than separate options.