From 8c1d7f90342749a14c3d222a664c98d22baeb559 Mon Sep 17 00:00:00 2001 From: jak1 Date: Mon, 31 May 2021 22:05:41 +0200 Subject: added --uniqueSession/-S flag for launcher usage --- src/commandline.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/commandline.cpp') diff --git a/src/commandline.cpp b/src/commandline.cpp index ba0a54d69..048565f3e 100644 --- a/src/commandline.cpp +++ b/src/commandline.cpp @@ -135,7 +135,7 @@ static void printVersion() void parseOptions(const int argc, char *const argv[]) { - const char *const optstring = "hvud:U:P:Dc:p:y:l:L:C:s:t:T:a:r:e:V"; + const char *const optstring = "hvud:U:P:Dc:p:y:l:L:C:s:t:T:a:r:e:V:S"; const option long_options[] = { @@ -165,6 +165,7 @@ void parseOptions(const int argc, char *const argv[]) { "hide-cursor", no_argument, nullptr, 'q' }, { "error", no_argument, nullptr, 'e' }, { "validate", no_argument, nullptr, 'V' }, + { "unique-session", no_argument, nullptr, 'S' }, { nullptr, 0, nullptr, 0 } }; @@ -268,6 +269,9 @@ void parseOptions(const int argc, char *const argv[]) case 'V': options.validate = true; break; + case 'S': + options.uniqueSession = true; + break; default: break; } -- cgit v1.2.3-70-g09d2