summaryrefslogtreecommitdiff
path: root/src/support/command-line.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/support/command-line.cpp')
-rw-r--r--src/support/command-line.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/support/command-line.cpp b/src/support/command-line.cpp
index 40e11f60a..659c055c9 100644
--- a/src/support/command-line.cpp
+++ b/src/support/command-line.cpp
@@ -97,7 +97,7 @@ void Options::parse(int argc, const char *argv[]) {
auto equal = currentOption.find_first_of('=');
if (equal != std::string::npos) {
argument = currentOption.substr(equal + 1);
- currentOption = currentOption.substr(0, equal - 1);
+ currentOption = currentOption.substr(0, equal);
}
Option *option = nullptr;
for (auto &o : options)