forked from lix-project/lix
Make config options available to legacy commands
This commit is contained in:
parent
c9c3fc710b
commit
5ef5d70b5e
|
@ -34,6 +34,10 @@ MixCommonArgs::MixCommonArgs(const string & programName)
|
|||
warn(e.what());
|
||||
}
|
||||
});
|
||||
|
||||
std::string cat = "config";
|
||||
settings.convertToArgs(*this, cat);
|
||||
hiddenCategories.insert(cat);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue