Lines Matching refs:argv
214 main(int argc, char *argv[]) in main() argument
222 if (strcmp(argv[number], "-c") == 0) { in main()
225 else if (strcmp(argv[number], "-u") == 0) { in main()
228 else if (argv[number][0] == '-') { in main()
229 printf("Unknown option: '%s'\n", argv[number]); in main()
232 if (argv[number][0] == '-') { in main()
234 memmove(argv+number, argv+number+1, (argc-number-1)*sizeof(char *)); in main()
244 printf("Usage: %s [-c] [-u] file1.yaml ...\n", argv[0]); in main()
265 printf("[%d] Parsing, emitting, and parsing again '%s': ", number, argv[number]); in main()
268 file = fopen(argv[number], "rb"); in main()
293 print_output(argv[number], buffer, written, count)); in main()
309 … assert(yaml_parser_parse(&parser, &event) || print_output(argv[number], buffer, written, count)); in main()
311 …assert(compare_events(events+count, &event) || print_output(argv[number], buffer, written, count)); in main()
323 print_output(argv[number], buffer, written, -1); in main()