[all-commits] [llvm/llvm-project] f0762f: [llvm-dwarfdump] Help option output should be cons...

gbreynoo via All-commits all-commits at lists.llvm.org
Fri May 7 03:23:34 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f0762fc42f0f4ecf849bef42eed2bb4c0785ea67
      https://github.com/llvm/llvm-project/commit/f0762fc42f0f4ecf849bef42eed2bb4c0785ea67
  Author: gbreynoo <Owen.Reynolds at sony.com>
  Date:   2021-05-07 (Fri, 07 May 2021)

  Changed paths:
    M llvm/test/tools/llvm-dwarfdump/cmdline.test
    M llvm/tools/llvm-dwarfdump/llvm-dwarfdump.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list