Lines Matching refs:s
85 const char* s = argv[i]; in Parse() local
86 const size_t len = strlen(s); in Parse()
87 if (s[0] != '-') { in Parse()
91 fprintf(stderr, "unknown option (%d): %s\n", i, s); in Parse()
95 if (s[1] == 'I') { in Parse()
97 options->import_paths_.push_back(s + 2); in Parse()
102 } else if (s[1] == 'd') { in Parse()
104 options->dep_file_name_ = s + 2; in Parse()
109 } else if (strcmp(s, "-a") == 0) { in Parse()
111 } else if (s[1] == 'p') { in Parse()
113 options->preprocessed_files_.push_back(s + 2); in Parse()
118 } else if (s[1] == 'o') { in Parse()
120 options->output_base_folder_= s + 2; in Parse()
125 } else if (strcmp(s, "-b") == 0) { in Parse()
127 } else if (strcmp(s, "-ninja") == 0) { in Parse()
131 fprintf(stderr, "unknown option (%d): %s\n", i, s); in Parse()
214 const char *s = argv[i]; in Parse() local
215 if (s[0] != '-') { in Parse()
219 cerr << "Invalid argument '" << s << "'." << endl; in Parse()
222 const string the_rest = s + 2; in Parse()
223 if (s[1] == 'I') { in Parse()
225 } else if (s[1] == 'd') { in Parse()
227 } else if (strcmp(s, "-ninja") == 0) { in Parse()
230 cerr << "Invalid argument '" << s << "'." << endl; in Parse()