Show doctest help if requested.

This commit is contained in:
Jacob Dufault 2018-02-11 17:14:45 -08:00
parent 35c407b2ac
commit 886f6f4a2c

View File

@ -433,6 +433,8 @@ int main(int argc, char** argv) {
if (HasOption(options, "-h") || HasOption(options, "--help")) {
PrintHelp();
// Also emit doctest help if --test-unit is passed.
if (!HasOption(options, "--test-unit"))
return 0;
}