Lines Matching refs:arg

36 std::string GetSafePath(const 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 arg.to_string(); in GetSafePath()
56 auto func = [value, flags](const StringPiece& arg) -> bool { in AddRequiredFlag() argument
57 *value = (flags & Command::kPath) ? GetSafePath(arg) : arg.to_string(); in AddRequiredFlag()
66 auto func = [value, flags](const StringPiece& arg) -> bool { in AddRequiredFlagList() argument
67 value->push_back((flags & Command::kPath) ? GetSafePath(arg) : arg.to_string()); in AddRequiredFlagList()
76 auto func = [value, flags](const StringPiece& arg) -> bool { in AddOptionalFlag() argument
77 *value = (flags & Command::kPath) ? GetSafePath(arg) : arg.to_string(); in AddOptionalFlag()
86 auto func = [value, flags](const StringPiece& arg) -> bool { in AddOptionalFlagList() argument
87 value->push_back((flags & Command::kPath) ? GetSafePath(arg) : arg.to_string()); in AddOptionalFlagList()
96 auto func = [value](const StringPiece& arg) -> bool { in AddOptionalFlagList() argument
97 value->insert(arg.to_string()); in AddOptionalFlagList()
106 auto func = [value](const StringPiece& arg) -> bool { in AddOptionalSwitch() argument
186 const StringPiece& arg = args[i]; in Execute() local
187 if (*(arg.data()) != '-') { in Execute()
191 if (arg == subcommand->name_ || (!subcommand->short_name_.empty() in Execute()
192 && arg == subcommand->short_name_)) { in Execute()
198 if (arg == subcommand->name_ || (!subcommand->short_name_.empty() in Execute()
199 && arg == subcommand->short_name_)) { in Execute()
206 file_args.push_back(GetSafePath(arg)); in Execute()
210 if (arg == "-h" || arg == "--help") { in Execute()
217 if (arg == flag.name) { in Execute()
236 *out_error << "unknown option '" << arg << "'.\n\n"; in Execute()