Lines Matching defs:argv
193 int main(int argc, char** argv) {
202 if (!strcmp(argv[1], "print")) {
204 } else if (!strcmp(argv[1], "verbose")) {
206 } else if (!strcmp(argv[1], "forever")) {
208 } else if (!strncmp(argv[1], "timeout=", 8)) {
209 timeout = ZX_MSEC(atoi(argv[1] + 8));
214 } else if (!strncmp(argv[1], "class=", 6)) {
215 devclass = argv[1] + 6;
216 } else if (!strncmp(argv[1], "topo=", 5)) {
217 new_rule(argv[1] + 5, expr_topo);
218 } else if (!strncmp(argv[1], "part.guid=", 10)) {
219 new_rule(argv[1] + 10, expr_part_guid);
220 } else if (!strncmp(argv[1], "part.type.guid=", 15)) {
221 new_rule(argv[1] + 15, expr_part_guid);
222 } else if (!strncmp(argv[1], "part.name=", 10)) {
223 new_rule(argv[1] + 10, expr_part_name);
225 fprintf(stderr, "waitfor: error: unknown expr '%s'\n\n", argv[1]);
230 argv++;