Lines Matching refs:args
121 std::vector<std::string> args(argv, argv + argc); in get_args() local
124 if (args.size() == 1) { in get_args()
131 if (!it->empty() && (*it)[0] != '\0') args.push_back(std::move(*it)); in get_args()
133 LOG(INFO) << "Got " << args.size() << " arguments from boot message"; in get_args()
140 if (args.size() == 1 && HasCache()) { in get_args()
149 if (!it->empty() && (*it)[0] != '\0') args.push_back(std::move(*it)); in get_args()
151 LOG(INFO) << "Got " << args.size() << " arguments from " << COMMAND_FILE; in get_args()
158 std::vector<std::string> options(args.cbegin() + 1, args.cend()); in get_args()
165 if (args.size() == 1 && boot_command == "boot-fastboot") { in get_args()
166 args.emplace_back("--fastboot"); in get_args()
167 } else if (args.size() == 1 && boot_command == "boot-rescue") { in get_args()
168 args.emplace_back("--rescue"); in get_args()
171 return args; in get_args()
342 std::vector<std::string> args = get_args(argc, argv, &stage); in main() local
343 auto args_to_parse = StringVectorToNullTerminatedArray(args); in main()
490 auto ret = fastboot ? StartFastboot(device, args) : start_recovery(device, args); in main()