]> git.lizzy.rs Git - rust.git/commit
test: ensure that the extended usage description gets printed.
authorHuon Wilson <dbau.pp+github@gmail.com>
Mon, 5 May 2014 12:44:07 +0000 (22:44 +1000)
committerHuon Wilson <dbau.pp+github@gmail.com>
Thu, 15 May 2014 13:04:09 +0000 (23:04 +1000)
commitb1ee3200b52a87ba788a6edf3b14db9466f2cb7d
tree497aff49c6226142b730220f84e0dd3e0192e461
parent19f9181654ec71754c8528dd37075643d95947c4
test: ensure that the extended usage description gets printed.

Previously the longer hand-written usage string was never being printed:
theoretically it was trying to detect when precisely `--help` was
passed (but not `-h`), but the getopts framework was considering a check
for the presence of `-h` to be a check for that of `--help` too,
i.e. the code was always going through the `-h` path.

This changes it to print the extended usage for both `-h` and `--help`,
meaning that it does actually appear correctly.
src/libtest/lib.rs