From 2c9be7c223aa4835bdbf5d33d72fcd9122ff9c2d Mon Sep 17 00:00:00 2001 From: Martchus Date: Fri, 31 Dec 2021 00:42:43 +0100 Subject: [PATCH] Fix parsing CLI argument "target-attachments" --- cli/helper.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/helper.cpp b/cli/helper.cpp index d146738..7da648a 100644 --- a/cli/helper.cpp +++ b/cli/helper.cpp @@ -515,7 +515,7 @@ bool applyTargetConfiguration(TagTarget &target, std::string_view configStr) } else if (configStr.compare(0, 16, "target-editions=") == 0) { target.editions() = parseIds(configStr.substr(16)); } else if (configStr.compare(0, 19, "target-attachments=") == 0) { - target.attachments() = parseIds(configStr.substr(17)); + target.attachments() = parseIds(configStr.substr(19)); } else if (configStr.compare(0, 13, "target-reset=") == 0) { if (*(configStr.data() + 13)) { cerr << Phrases::Error << "Invalid assignment " << (configStr.data() + 13) << " for target-reset." << Phrases::EndFlush;