[flang] Add details to --help screen on default behaviour
authorRichard Barton <richard.barton@arm.com>
Thu, 25 Jun 2020 15:01:56 +0000 (16:01 +0100)
committerRichard Barton <richard.barton@arm.com>
Fri, 31 Jul 2020 14:56:37 +0000 (15:56 +0100)
commitb068d19a151d9d3a73b0265df27836d9fd0ad1e3
tree7176c78af363e8889596d87d9d2fc0b5a336e7db
parentdd5ea5674b86bade4904fab4c66a1156b3df033e
[flang] Add details to --help screen on default behaviour

Add a usage string and a defaults section that clarifies:
 * If no input files are given, f18 reads from stdin
 * If no input files are given, f18 dumps the parse tree.
 * The default behaviour is to exec F18_FC.
 * The fefault F18_FC setting is 'gfortran'

Adds a simple regression test which tests the top and tail of the help
screen and the exit status.

Depends on D84855

Differential Revision: https://reviews.llvm.org/D84856
flang/test/Driver/help.f90 [new file with mode: 0644]
flang/tools/f18/f18.cpp