Skip to content

Commit d220880

Browse files
committed
llvm-lto2: Changed version main command to --version
1 parent 48ba0ed commit d220880

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
## Show that you can run version as a main command for llvm-lto2
22
## or a subcommand of llvm-lto2 run.
33

4-
RUN: llvm-lto2 version | Filecheck %s
4+
RUN: llvm-lto2 --version | Filecheck %s
55
RUN: llvm-lto2 run --version | FileCheck %s
66

77
CHECK: version

llvm/tools/llvm-lto2/llvm-lto2.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ template <typename T> static T check(ErrorOr<T> E, std::string Msg) {
247247
}
248248

249249
static int usage() {
250-
errs() << "Available subcommands: dump-symtab run print-guid version\n";
250+
errs() << "Available subcommands: dump-symtab run print-guid --version\n";
251251
return 1;
252252
}
253253

@@ -616,7 +616,7 @@ int main(int argc, char **argv) {
616616
outs() << GlobalValue::getGUIDAssumingExternalLinkage(argv[2]) << '\n';
617617
return 0;
618618
}
619-
if (Subcommand == "version") {
619+
if (Subcommand == "--version") {
620620
cl::PrintVersionMessage();
621621
return 0;
622622
}

0 commit comments

Comments
 (0)