diff --git a/test/tools/llvm-objcopy/tool-version.test b/test/tools/llvm-objcopy/tool-version.test index 5fe33eb8e71..a6cc8f96221 100644 --- a/test/tools/llvm-objcopy/tool-version.test +++ b/test/tools/llvm-objcopy/tool-version.test @@ -5,6 +5,7 @@ # RUN: llvm-strip -V | FileCheck --check-prefix=STRIP %s # RUN: llvm-install-name-tool --version | FileCheck %s +# RUN: llvm-install-name-tool -V | FileCheck %s # OBJCOPY-DAG: {{ version }} # OBJCOPY-DAG: GNU objcopy diff --git a/tools/llvm-objcopy/InstallNameToolOpts.td b/tools/llvm-objcopy/InstallNameToolOpts.td index 04ffe62c42f..7998041513c 100644 --- a/tools/llvm-objcopy/InstallNameToolOpts.td +++ b/tools/llvm-objcopy/InstallNameToolOpts.td @@ -32,3 +32,7 @@ def change: MultiArg<["-", "--"], "change", 2>, def version : Flag<["--"], "version">, HelpText<"Print the version and exit.">; + +def V : Flag<["-"], "V">, + Alias, + HelpText<"Alias for --version">;