summaryrefslogtreecommitdiff
path: root/src/commandline.cpp
diff options
context:
space:
mode:
authorMikaƫl Capelle <capelle.mikael@gmail.com>2021-01-29 08:48:01 +0100
committerGitHub <noreply@github.com>2021-01-29 08:48:01 +0100
commit8606bf70c76252e20f888264bfbdedde0f1c8754 (patch)
treeac827454e054eb3aceaa139562ef3dd27ca94d55 /src/commandline.cpp
parent136dc17e011deda53f6e82e6c8b23ee701be3158 (diff)
parenta88d3436cc6b2c24ab05400a5ad5e9e67cb95db8 (diff)
Merge pull request #1384 from Holt59/add-pick-argument
Implement --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);