Lines Matching defs:arg
30 const char* arg = argv[*index];
31 if (!HasPrefix(arg, option))
33 if (arg[option.size()] == '\0') {
38 if (arg[option.size()] == '=') {
39 *out_arg = arg + option.size() + 1;
44 *out_arg = arg + option.size();
56 const char* arg = argv[i];
59 if (!strcmp(arg, "-f")) {
62 } else if (!strcmp(arg, "-c")) {
64 } else if (!strcmp(arg, "-i")) {
66 } else if (!strcmp(arg, "-s")) {
68 } else if (!strcmp(arg, "--kati_stats")) {
70 } else if (!strcmp(arg, "--warn")) {
72 } else if (!strcmp(arg, "--ninja")) {
74 } else if (!strcmp(arg, "--gen_all_targets")) {
76 } else if (!strcmp(arg, "--regen")) {
79 } else if (!strcmp(arg, "--regen_ignoring_kati_binary")) {
81 } else if (!strcmp(arg, "--dump_kati_stamp")) {
83 } else if (!strcmp(arg, "--detect_android_echo")) {
85 } else if (!strcmp(arg, "--detect_depfiles")) {
103 } else if (!strcmp(arg, "--use_find_emulator")) {
116 } else if (arg[0] == '-') {
117 ERROR("Unknown flag: %s", arg);
119 if (strchr(arg, '=')) {
120 cl_vars.push_back(arg);
123 targets.push_back(Intern(arg));