[llvm-dwarfdump] Print [=<offset>] after --debug-* options in help output.
authorJonas Devlieghere <jonas@devlieghere.com>
Tue, 2 Jun 2020 18:03:21 +0000 (11:03 -0700)
committerJonas Devlieghere <jonas@devlieghere.com>
Tue, 2 Jun 2020 18:06:11 +0000 (11:06 -0700)
commit5b460fb15e8bcd4b5f5ffad253b68aa2bc274049
treeab7d28ef67fe4a16df673b25efc52d35d108097d
parentcdd30542551a4c1af64b819f50982f197b61e28e
[llvm-dwarfdump] Print [=<offset>] after --debug-* options in help output.

Some of the --debug-* options can take an optional offset. Although the
man page does a good job of making that clear, it's much harder to
discover from the help output.

Currently the only reference to this is the following sentence:

> Where applicable these parameters take an optional =<offset> argument
> to dump only the entry at the specified offset.

This patch changes the help output from to print [=<offset>] after the
options that take an offset.

  --debug-info[=<offset>]    - Dump the .debug_info section

rdar://problem/63150066

Differential revision: https://reviews.llvm.org/D80959
llvm/docs/CommandGuide/llvm-dwarfdump.rst
llvm/include/llvm/BinaryFormat/Dwarf.def
llvm/include/llvm/DebugInfo/DIContext.h
llvm/lib/Support/CommandLine.cpp
llvm/test/tools/llvm-dwarfdump/cmdline.test
llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp