[llvm-dwarfdump] Make commandline arguments consistent.
authorXing GUO <higuoxing@gmail.com>
Thu, 14 May 2020 09:33:49 +0000 (17:33 +0800)
committerXing GUO <higuoxing@gmail.com>
Thu, 14 May 2020 09:34:50 +0000 (17:34 +0800)
commit2974b3c566d68f1d7c907f891137cf0292dd35aa
tree641c56826852b8a38da175ebf61e6b6aab2359c3
parentdbc9e1c39aed43e6faa6b29caeed7bc5b43569f1
[llvm-dwarfdump] Make commandline arguments consistent.

Currently, llvm-dwarfdump's help message has two issues.

1. Most long options are printed in `--long-option`, except for some section dumping options, e.g., `-apple-names`, `-debug-addr`.

2. Most options are printed with consistent indention, except for some section dumping options.

This patch helps resolve these two issues.

Reviewed By: jhenderson

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