Fix cli fetch-config
This commit is contained in:
parent
bdca325aaf
commit
0727b08818
1 changed files with 1 additions and 0 deletions
|
|
@ -678,6 +678,7 @@ void App::createCommandParser() {
|
||||||
// Should be call only at first start
|
// Should be call only at first start
|
||||||
void App::sendCommand() {
|
void App::sendCommand() {
|
||||||
auto arguments = mParser->positionalArguments();
|
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.
|
static bool firstStart = true; // We can't erase positional arguments. So we get them on each restart.
|
||||||
if (firstStart && arguments.size() > 0) {
|
if (firstStart && arguments.size() > 0) {
|
||||||
firstStart = false;
|
firstStart = false;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue