9 void parse_flags(int argc, char * const argv[])
11 static const option long_options[] = {
12 { "num-cards", required_argument, 0, 'c' },
13 { "theme", required_argument, 0, 't' },
14 { "va-display", required_argument, 0, 1000 },
15 { "http-uncompressed-video", no_argument, 0, 1001 },
16 { "flat-audio", no_argument, 0, 1002 },
21 int c = getopt_long(argc, argv, "c:t:", long_options, &option_index);
28 global_flags.num_cards = atoi(optarg);
31 global_flags.theme_filename = optarg;
34 global_flags.va_display = optarg;
37 global_flags.uncompressed_video_to_http = true;
40 global_flags.flat_audio = true;
43 fprintf(stderr, "Unknown option '%s'\n", argv[option_index]);