summaryrefslogtreecommitdiff
path: root/src/commandline.cpp
diff options
context:
space:
mode:
authorMikaël Capelle <capelle.mikael@gmail.com>2021-01-28 19:05:05 +0100
committerMikaël Capelle <capelle.mikael@gmail.com>2021-01-28 19:05:05 +0100
commita88d3436cc6b2c24ab05400a5ad5e9e67cb95db8 (patch)
tree70900eb0da1ea4c9afd304db705393ca8bcc7e2a /src/commandline.cpp
parent41159e4eea0c79670d15b2707f4e6d7c86bb2d65 (diff)
Implementation --pick argument.
Diffstat (limited to 'src/commandline.cpp')
-rw-r--r--src/commandline.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/commandline.cpp b/src/commandline.cpp
index 477bfba1..22755dda 100644
--- a/src/commandline.cpp
+++ b/src/commandline.cpp
@@ -344,6 +344,9 @@ void CommandLine::createOptions()
("multiple",
"allow multiple MO processes to run; see below")
+ ("pick",
+ "show the select instance dialog on startup")
+
("logs",
"duplicates the logs to stdout")
@@ -424,6 +427,11 @@ std::string CommandLine::usage(const Command* c) const
return oss.str();
}
+bool CommandLine::pick() const
+{
+ return (m_vm.count("pick") > 0);
+}
+
bool CommandLine::multiple() const
{
return (m_vm.count("multiple") > 0);