Doh! Wrong Optional flag. :(

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@290 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2001-07-23 23:14:23 +00:00
parent 03fe1bd149
commit 2233a07b68
2 changed files with 6 additions and 4 deletions

View File

@ -94,8 +94,9 @@ void cl::ParseCommandLineOptions(int &argc, char **argv,
continue; continue;
} }
break; break;
case Optional: break; case ValueOptional: break;
default: cerr << "Bad ValueMask flag! CommandLine usage error!\n"; abort(); default: cerr << "Bad ValueMask flag! CommandLine usage error:"
<< Handler->getValueExpectedFlag() << endl; abort();
} }
// Run the handler now! // Run the handler now!

View File

@ -94,8 +94,9 @@ void cl::ParseCommandLineOptions(int &argc, char **argv,
continue; continue;
} }
break; break;
case Optional: break; case ValueOptional: break;
default: cerr << "Bad ValueMask flag! CommandLine usage error!\n"; abort(); default: cerr << "Bad ValueMask flag! CommandLine usage error:"
<< Handler->getValueExpectedFlag() << endl; abort();
} }
// Run the handler now! // Run the handler now!