From 0fd977c3991ec1992885246a9a308096480957a2 Mon Sep 17 00:00:00 2001 From: Gerhard Hoffmann Date: Mon, 20 Nov 2023 13:49:48 +0100 Subject: [PATCH] Fix copy-paste-error: set working-directory --- commandline_parser.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/commandline_parser.cpp b/commandline_parser.cpp index e7b7fd8..5cffbeb 100644 --- a/commandline_parser.cpp +++ b/commandline_parser.cpp @@ -83,7 +83,7 @@ void CommandLineParser::configure() { m_iniFileNameOption.setDefaultValue("ATBUpdateTool.ini"); m_parser.addOption(m_iniFileNameOption); - m_pluginDirectoryOption.setDefaultValue("/usr/lib"); + m_pluginDirectoryOption.setDefaultValue("/usr/lib/"); m_parser.addOption(m_pluginDirectoryOption); m_pluginNameOption.setDefaultValue("libCAslave.so"); @@ -91,7 +91,7 @@ void CommandLineParser::configure() { m_parser.addOption(m_noDownloadOption); - m_workingDirectoryOption.setDefaultValue("/opt/app/tools/atbupdate"); + m_workingDirectoryOption.setDefaultValue("/opt/app/tools/atbupdate/"); m_parser.addOption(m_workingDirectoryOption); m_parser.addOption(m_dryRunOption); @@ -118,7 +118,7 @@ void CommandLineParser::readSettings() { m_plugInDir = v.toString(); } else if (key.contains("working-directory")) { - m_plugInName = v.toString(); + m_workingDir = v.toString(); } else if (key.contains("dry-run")) { m_dryRun = (v.toBool() ? "true" : "false");