From 16ba428e44e22680ae255d46f5e928a4e6ff591a Mon Sep 17 00:00:00 2001 From: isanae <14251494+isanae@users.noreply.github.com> Date: Mon, 11 Jan 2021 02:07:34 -0500 Subject: fixed runPostMultiProcess() not being called comments --- src/commandline.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/commandline.cpp') 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 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 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 untouched) -- cgit v1.3.1