[llvm-dwarfdump] Help option output should be consistent with the command guide
authorgbreynoo <Owen.Reynolds@sony.com>
Fri, 7 May 2021 10:21:51 +0000 (11:21 +0100)
committergbreynoo <Owen.Reynolds@sony.com>
Fri, 7 May 2021 10:23:05 +0000 (11:23 +0100)
commitf0762fc42f0f4ecf849bef42eed2bb4c0785ea67
tree2e99c1a3fe005267635719fd6fef3fcfa0af14b6
parente805b7c2d63c1f8b74f228718a55536f54ddd1c0
[llvm-dwarfdump] Help option output should be consistent with the command guide

The dwarfdump command guide shows the short options used as aliases but
these are not found in the help text unless --show-hidden is used.
Investigating other tools some follow this pattern, others like
llvm-objdump show aliases with --help. This change fixes the help output
to be consistent with the command guide. This includes updating alias
descriptions in the help output to use "--".

As part of this change I updated cmdline.test, including some options
that were missing testing.

Differential Revision: https://reviews.llvm.org/D101646
llvm/test/tools/llvm-dwarfdump/cmdline.test
llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp