]> git.sesse.net Git - nageru/blobdiff - flags.cpp
Add red and green borders around channels to mark them as used for live and preview.
[nageru] / flags.cpp
index e0c638b708469a854cedfd6f869bb7de5e181a1f..7b20995f12c9c2b94d00432f231698d4e6057759 100644 (file)
--- a/flags.cpp
+++ b/flags.cpp
@@ -1,9 +1,8 @@
-#include <stdio.h>
+#include "flags.h"
+
 #include <getopt.h>
+#include <stdio.h>
 #include <stdlib.h>
-#include <unistd.h>
-
-#include "flags.h"
 
 Flags global_flags;
 
@@ -11,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;
@@ -24,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);