]> git.sesse.net Git - nageru/blobdiff - flags.cpp
Release Nageru 1.2.0.
[nageru] / flags.cpp
index c06be70e4aed1b47cd28d46aedc0dccd0a18ad7c..7b20995f12c9c2b94d00432f231698d4e6057759 100644 (file)
--- a/flags.cpp
+++ b/flags.cpp
@@ -10,13 +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;
@@ -25,12 +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);