Lines Matching refs:arg

36 std::string GetSafePath(StringPiece arg) {  in GetSafePath()  argument
41 CHECK(android::base::UTF8PathToWindowsLongPath(arg.data(), &path16)) in GetSafePath()
42 << "Failed to convert file path to UTF-16: file path " << arg.data(); in GetSafePath()
46 << "Failed to convert file path back to UTF-8: file path " << arg.data(); in GetSafePath()
50 return std::string(arg); in GetSafePath()
56 auto func = [value, flags](StringPiece arg) -> bool { in AddRequiredFlag() argument
57 *value = (flags & Command::kPath) ? GetSafePath(arg) : std::string(arg); in AddRequiredFlag()
66 auto func = [value, flags](StringPiece arg) -> bool { in AddRequiredFlagList() argument
67 value->push_back((flags & Command::kPath) ? GetSafePath(arg) : std::string(arg)); in AddRequiredFlagList()
76 auto func = [value, flags](StringPiece arg) -> bool { in AddOptionalFlag() argument
77 *value = (flags & Command::kPath) ? GetSafePath(arg) : std::string(arg); in AddOptionalFlag()
86 auto func = [value, flags](StringPiece arg) -> bool { in AddOptionalFlagList() argument
87 value->push_back((flags & Command::kPath) ? GetSafePath(arg) : std::string(arg)); in AddOptionalFlagList()
96 auto func = [value](StringPiece arg) -> bool { in AddOptionalFlagList() argument
97 value->emplace(arg); in AddOptionalFlagList()
105 auto func = [value](StringPiece arg) -> bool { in AddOptionalSwitch() argument
185 StringPiece arg = args[i]; in Execute() local
186 if (*(arg.data()) != '-') { in Execute()
190 if (arg == subcommand->name_ || (!subcommand->short_name_.empty() in Execute()
191 && arg == subcommand->short_name_)) { in Execute()
197 if (arg == subcommand->name_ || (!subcommand->short_name_.empty() in Execute()
198 && arg == subcommand->short_name_)) { in Execute()
205 file_args.push_back(GetSafePath(arg)); in Execute()
209 if (arg == "-h" || arg == "--help") { in Execute()
216 if (arg == flag.name) { in Execute()
235 *out_error << "unknown option '" << arg << "'.\n\n"; in Execute()