From 2233a07b686ead865b0bfeed5a50d178d05f9549 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 23 Jul 2001 23:14:23 +0000 Subject: Doh! Wrong Optional flag. :( git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@290 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/CommandLine.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/Support/CommandLine.cpp') diff --git a/lib/Support/CommandLine.cpp b/lib/Support/CommandLine.cpp index a28b86f551..db2c3f373f 100644 --- a/lib/Support/CommandLine.cpp +++ b/lib/Support/CommandLine.cpp @@ -94,8 +94,9 @@ void cl::ParseCommandLineOptions(int &argc, char **argv, continue; } break; - case Optional: break; - default: cerr << "Bad ValueMask flag! CommandLine usage error!\n"; abort(); + case ValueOptional: break; + default: cerr << "Bad ValueMask flag! CommandLine usage error:" + << Handler->getValueExpectedFlag() << endl; abort(); } // Run the handler now! -- cgit v1.2.3-18-g5258