aboutsummaryrefslogtreecommitdiffstats
path: root/monitor-get-edid.c
diff options
context:
space:
mode:
Diffstat (limited to 'monitor-get-edid.c')
-rw-r--r--monitor-get-edid.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/monitor-get-edid.c b/monitor-get-edid.c
index ed5b480..781684c 100644
--- a/monitor-get-edid.c
+++ b/monitor-get-edid.c
@@ -9,9 +9,14 @@
#include <stdarg.h>
#include "get-edid.h"
-int main(void)
+int verbose = 0;
+
+int main(int argc, char **argv)
{
char edid[256];
+
+ if (argc > 1 && strcmp(argv[1], "-v") == 0) verbose = 1;
+
int size = get_edid(edid);
if (size) write(1, edid, size);