Lines Matching defs:ArgName
494 StringRef ArgName, StringRef Value,
504 if (Handler->addOccurrence(pos, ArgName, Val.substr(0, Pos), MultiArg))
516 return Handler->addOccurrence(pos, ArgName, Value, MultiArg);
522 static inline bool ProvideOption(Option *Handler, StringRef ArgName,
554 return CommaSeparateAndAddOccurrence(Handler, i, ArgName, Value);
560 if (CommaSeparateAndAddOccurrence(Handler, i, ArgName, Value, MultiArg))
572 if (CommaSeparateAndAddOccurrence(Handler, i, ArgName, Value, MultiArg))
1110 StringRef ArgName = "";
1147 ArgName = argv[i] + 1;
1149 while (!ArgName.empty() && ArgName[0] == '-')
1150 ArgName = ArgName.substr(1);
1152 Handler = LookupOption(*ChosenSubCommand, ArgName, Value);
1159 ArgName = argv[i] + 1;
1161 while (!ArgName.empty() && ArgName[0] == '-')
1162 ArgName = ArgName.substr(1);
1164 Handler = LookupOption(*ChosenSubCommand, ArgName, Value);
1168 Handler = HandlePrefixedOrGroupedOption(ArgName, Value, ErrorParsing,
1175 LookupNearestOption(ArgName, OptionsMap, NearestHandlerString);
1206 ErrorParsing |= ProvideOption(Handler, ArgName, Value, argc, argv, i);
1332 bool Option::error(const Twine &Message, StringRef ArgName) {
1333 if (!ArgName.data())
1334 ArgName = ArgStr;
1335 if (ArgName.empty())
1338 errs() << GlobalParser->ProgramName << ": for the -" << ArgName;
1344 bool Option::addOccurrence(unsigned pos, StringRef ArgName, StringRef Value,
1352 return error("may only occur zero or one times!", ArgName);
1356 return error("must occur exactly one time!", ArgName);
1364 return handleOccurrence(pos, ArgName, Value);
1436 bool parser<bool>::parse(Option &O, StringRef ArgName, StringRef Arg,
1454 bool parser<boolOrDefault>::parse(Option &O, StringRef ArgName, StringRef Arg,
1472 bool parser<int>::parse(Option &O, StringRef ArgName, StringRef Arg,
1481 bool parser<unsigned>::parse(Option &O, StringRef ArgName, StringRef Arg,
1491 bool parser<unsigned long long>::parse(Option &O, StringRef ArgName,
1512 bool parser<double>::parse(Option &O, StringRef ArgName, StringRef Arg,
1517 bool parser<float>::parse(Option &O, StringRef ArgName, StringRef Arg,