From 50ac47e24edf8a5f52bc99b09525b0680a06a627 Mon Sep 17 00:00:00 2001 From: Dave Davenport Date: Thu, 2 Dec 2021 08:47:26 +0100 Subject: [PATCH] [Config] Skip single element options. --- source/xrmoptions.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/xrmoptions.c b/source/xrmoptions.c index f3555d82..65a724c3 100644 --- a/source/xrmoptions.c +++ b/source/xrmoptions.c @@ -539,6 +539,9 @@ void config_parse_cmd_options(void) { extern char **stored_argv; for (int in = 1; in < (stored_argc - 1); in++) { if (stored_argv[in][0] == '-') { + if (stored_argv[in + 1][0] == '-') { + continue; + } /** TODO: This is a hack, and should be fixed in a nicer way. */ char **tokens = g_strsplit(stored_argv[in], "-", 3); int count = 1;