Make config options available to legacy commands

This commit is contained in:
Eelco Dolstra 2017-11-14 14:04:09 +01:00
parent c9c3fc710b
commit 5ef5d70b5e
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE
2 changed files with 4 additions and 4 deletions

View file

@ -34,6 +34,10 @@ MixCommonArgs::MixCommonArgs(const string & programName)
warn(e.what());
}
});
std::string cat = "config";
settings.convertToArgs(*this, cat);
hiddenCategories.insert(cat);
}
}

View file

@ -43,10 +43,6 @@ struct NixArgs : virtual MultiCommand, virtual MixCommonArgs
.longName("version")
.description("show version information")
.handler([&]() { printVersion(programName); });
std::string cat = "config";
settings.convertToArgs(*this, cat);
hiddenCategories.insert(cat);
}
void printFlags(std::ostream & out) override