[PATCH] D101483: [llvm-objdump] add -v alias for --version
Nick Desaulniers via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 30 11:37:21 PDT 2021
This revision was automatically updated to reflect the committed changes.
Closed by commit rGdde24a87c55f: [llvm-objdump] add -v alias for --version (authored by nickdesaulniers).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D101483/new/
https://reviews.llvm.org/D101483
Files:
llvm/docs/CommandGuide/llvm-objdump.rst
llvm/test/tools/llvm-objdump/version.test
llvm/tools/llvm-objdump/ObjdumpOpts.td
Index: llvm/tools/llvm-objdump/ObjdumpOpts.td
===================================================================
--- llvm/tools/llvm-objdump/ObjdumpOpts.td
+++ llvm/tools/llvm-objdump/ObjdumpOpts.td
@@ -14,6 +14,8 @@
def version : Flag<["--"], "version">,
HelpText<"Display the version of this program">,
Group<grp_generic>;
+def : Flag<["-"], "v">, Alias<version>, HelpText<"Alias for --version">,
+ Group<grp_generic>;
Index: llvm/test/tools/llvm-objdump/version.test
===================================================================
--- /dev/null
+++ llvm/test/tools/llvm-objdump/version.test
@@ -0,0 +1,5 @@
+RUN: llvm-objdump --version | FileCheck %s
+RUN: llvm-objdump -v | FileCheck %s
+
+CHECK: LLVM version
+CHECK: Registered Targets:
Index: llvm/docs/CommandGuide/llvm-objdump.rst
===================================================================
--- llvm/docs/CommandGuide/llvm-objdump.rst
+++ llvm/docs/CommandGuide/llvm-objdump.rst
@@ -93,7 +93,7 @@
Display the unwind info of the input(s).
-.. option:: --version
+.. option:: -v, --version
Display the version of the :program:`llvm-objdump` executable. Does not stack
with other commands.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D101483.341996.patch
Type: text/x-patch
Size: 1187 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210430/fe5ae3dd/attachment.bin>
More information about the llvm-commits
mailing list