From a512b99a5187be14d399a565baba372c313f74db Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sun, 23 Oct 2011 19:41:40 +0100 Subject: [PATCH] Introduce --get_socketpath and --force_xinerama as synonyms for --get-socketpath and --force-xinerama --- src/main.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index a9d71416..958ea653 100644 --- a/src/main.c +++ b/src/main.c @@ -215,8 +215,10 @@ int main(int argc, char *argv[]) { {"layout", required_argument, 0, 'L'}, {"restart", required_argument, 0, 0}, {"force-xinerama", no_argument, 0, 0}, + {"force_xinerama", no_argument, 0, 0}, {"disable-signalhandler", no_argument, 0, 0}, {"get-socketpath", no_argument, 0, 0}, + {"get_socketpath", no_argument, 0, 0}, {0, 0, 0, 0} }; int option_index = 0, opt; @@ -266,7 +268,8 @@ int main(int argc, char *argv[]) { /* DEPRECATED, ignored for the next 3 versions (3.e, 3.f, 3.g) */ break; case 0: - if (strcmp(long_options[option_index].name, "force-xinerama") == 0) { + if (strcmp(long_options[option_index].name, "force-xinerama") == 0 || + strcmp(long_options[option_index].name, "force_xinerama") == 0) { force_xinerama = true; ELOG("Using Xinerama instead of RandR. This option should be " "avoided at all cost because it does not refresh the list " @@ -277,7 +280,8 @@ int main(int argc, char *argv[]) { } else if (strcmp(long_options[option_index].name, "disable-signalhandler") == 0) { disable_signalhandler = true; break; - } else if (strcmp(long_options[option_index].name, "get-socketpath") == 0) { + } else if (strcmp(long_options[option_index].name, "get-socketpath") == 0 || + strcmp(long_options[option_index].name, "get_socketpath") == 0) { char *socket_path = socket_path_from_x11(); if (socket_path) { printf("%s\n", socket_path); -- 2.39.5