summaryrefslogtreecommitdiff
path: root/src/commandline.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2021-01-11 02:07:34 -0500
committerisanae <14251494+isanae@users.noreply.github.com>2021-01-18 08:20:08 -0500
commit16ba428e44e22680ae255d46f5e928a4e6ff591a (patch)
tree1e2ff07b8b1e160e94832948cfd7926271fcfcae /src/commandline.cpp
parent06109a568be5d31ebb3303b4702dec7185f22066 (diff)
fixed runPostMultiProcess() not being called
comments
Diffstat (limited to 'src/commandline.cpp')
-rw-r--r--src/commandline.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/commandline.cpp b/src/commandline.cpp
index 10d0f1fd..1b7c7b0e 100644
--- a/src/commandline.cpp
+++ b/src/commandline.cpp
@@ -133,7 +133,7 @@ std::optional<int> CommandLine::process(const std::wstring& line)
}
}
- c->process(line, m_vm, opts);
+ c->set(line, m_vm, opts);
m_command = c.get();
return m_command->runEarly();
@@ -228,6 +228,10 @@ bool CommandLine::forwardToPrimary(MOMultiProcess& multiProcess)
std::optional<int> CommandLine::runPostMultiProcess(MOMultiProcess& mp)
{
+ if (m_command) {
+ return m_command->runPostMultiProcess(mp);
+ }
+
return {};
}
@@ -511,7 +515,7 @@ po::positional_options_description Command::getPositional() const
return {};
}
-void Command::process(
+void Command::set(
const std::wstring& originalLine,
po::variables_map vm,
std::vector<std::wstring> untouched)