[PATCH] D84857: [flang] Add -h as a synonym for help
Richard Barton via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 31 09:03:06 PDT 2020
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG30e45f339eb0: [flang] Add -h as a synonym for help (authored by richard.barton.arm).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D84857/new/
https://reviews.llvm.org/D84857
Files:
flang/test/Driver/help.f90
flang/tools/f18/f18.cpp
Index: flang/tools/f18/f18.cpp
===================================================================
--- flang/tools/f18/f18.cpp
+++ flang/tools/f18/f18.cpp
@@ -603,7 +603,7 @@
driver.getSymbolsSources = true;
} else if (arg == "-byteswapio") {
driver.byteswapio = true; // TODO: Pass to lowering, generate call
- } else if (arg == "-help" || arg == "--help" || arg == "-?") {
+ } else if (arg == "-h" || arg == "-help" || arg == "--help" || arg == "-?") {
llvm::errs()
<< "f18: LLVM Fortran compiler\n"
<< "\n"
Index: flang/test/Driver/help.f90
===================================================================
--- flang/test/Driver/help.f90
+++ flang/test/Driver/help.f90
@@ -1,3 +1,4 @@
+! RUN: %f18 -h 2>&1 | FileCheck %s
! RUN: %f18 -help 2>&1 | FileCheck %s
! RUN: %f18 --help 2>&1 | FileCheck %s
! RUN: %f18 -? 2>&1 | FileCheck %s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D84857.282241.patch
Type: text/x-patch
Size: 895 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200731/798ae101/attachment.bin>
More information about the llvm-commits
mailing list