Lines Matching refs:args
328 std::vector<std::string> args; in ArgsToVec() local
329 args.reserve(argc); in ArgsToVec()
331 args.push_back(argv[i]); in ArgsToVec()
333 return args; in ArgsToVec()
340 static Separated SeparateByEndOfOptionMark(std::vector<std::string> args) { in SeparateByEndOfOptionMark() argument
344 auto itr = std::find(args.begin(), args.end(), "--"); in SeparateByEndOfOptionMark()
345 bool has_mark = (itr != args.end()); in SeparateByEndOfOptionMark()
347 args_before_mark = std::move(args); in SeparateByEndOfOptionMark()
349 args_before_mark.insert(args_before_mark.end(), args.begin(), itr); in SeparateByEndOfOptionMark()
350 args_after_mark.insert(args_after_mark.end(), itr + 1, args.end()); in SeparateByEndOfOptionMark()
360 std::vector<std::string>& args) { in ConsumeFlagsImpl() argument
362 CF_EXPECT(flag.Parse(args)); in ConsumeFlagsImpl()
368 std::vector<std::string>&& args) { in ConsumeFlagsImpl() argument
370 CF_EXPECT(flag.Parse(args)); in ConsumeFlagsImpl()
376 std::vector<std::string>& args, in ConsumeFlags() argument
379 CF_EXPECT(ConsumeFlagsImpl(flags, args)); in ConsumeFlags()
382 auto separated = SeparateByEndOfOptionMark(std::move(args)); in ConsumeFlags()
383 args.clear(); in ConsumeFlags()
385 args = std::move(separated.args_before_mark); in ConsumeFlags()
386 args.insert(args.end(), in ConsumeFlags()
394 std::vector<std::string>&& args, in ConsumeFlags() argument
397 CF_EXPECT(ConsumeFlagsImpl(flags, std::move(args))); in ConsumeFlags()
400 auto separated = SeparateByEndOfOptionMark(std::move(args)); in ConsumeFlags()