[libFuzzer] don't print help for internal flags

llvm-svn: 281124
This commit is contained in:
Kostya Serebryany 2016-09-10 00:35:30 +00:00
parent b991cc1f0e
commit 4529960a3b
2 changed files with 3 additions and 0 deletions

View File

@ -88,6 +88,7 @@ static void PrintHelp() {
for (size_t F = 0; F < kNumFlags; F++) {
const auto &D = FlagDescriptions[F];
if (strstr(D.Description, "internal flag") == D.Description) continue;
Printf(" %s", D.Name);
for (size_t i = 0, n = MaxFlagLen - strlen(D.Name); i < n; i++)
Printf(" ");

View File

@ -6,3 +6,5 @@ RUN: LLVMFuzzer-SimpleTest -runs=10 --max_len=100 2>&1 | FileCheck %s --check-pr
DASH_DASH: WARNING: did you mean '-max_len=100' (single dash)?
DASH_DASH: INFO: A corpus is not provided, starting from an empty corpus
RUN: LLVMFuzzer-SimpleTest -help=1 2>&1 | FileCheck %s --check-prefix=NO_INTERNAL
NO_INTERNAL-NOT: internal flag