X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=flags.cpp;h=7b20995f12c9c2b94d00432f231698d4e6057759;hb=72d11df3520d1afd8929b167dfa7eabdbe8eed63;hp=56ca799cea36967d95a55bb79086659c8870c602;hpb=d7bba4abb3d56893399578f0540b9ded0a28380f;p=nageru diff --git a/flags.cpp b/flags.cpp index 56ca799..7b20995 100644 --- a/flags.cpp +++ b/flags.cpp @@ -10,11 +10,15 @@ void parse_flags(int argc, char * const argv[]) { static const option long_options[] = { { "num-cards", required_argument, 0, 'c' }, + { "theme", required_argument, 0, 't' }, + { "va-display", required_argument, 0, 1000 }, + { "http-uncompressed-video", no_argument, 0, 1001 }, + { "flat-audio", no_argument, 0, 1002 }, { 0, 0, 0, 0 } }; for ( ;; ) { int option_index = 0; - int c = getopt_long(argc, argv, "c:", long_options, &option_index); + int c = getopt_long(argc, argv, "c:t:", long_options, &option_index); if (c == -1) { break; @@ -23,6 +27,18 @@ void parse_flags(int argc, char * const argv[]) case 'c': global_flags.num_cards = atoi(optarg); break; + case 't': + global_flags.theme_filename = optarg; + break; + case 1000: + global_flags.va_display = optarg; + break; + case 1001: + global_flags.uncompressed_video_to_http = true; + break; + case 1002: + global_flags.flat_audio = true; + break; default: fprintf(stderr, "Unknown option '%s'\n", argv[option_index]); exit(1);