Fix cli fetch-config

This commit is contained in:
Julien Wadel 2024-10-17 12:41:52 +02:00
parent bdca325aaf
commit 0727b08818

View file

@ -678,6 +678,7 @@ void App::createCommandParser() {
// Should be call only at first start
void App::sendCommand() {
auto arguments = mParser->positionalArguments();
if (mParser->isSet("fetch-config")) arguments << "fetch-config=" + mParser->value("fetch-config");
static bool firstStart = true; // We can't erase positional arguments. So we get them on each restart.
if (firstStart && arguments.size() > 0) {
firstStart = false;