mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 08:16:15 +02:00
Make config options available to legacy commands
This commit is contained in:
parent
c9c3fc710b
commit
5ef5d70b5e
2 changed files with 4 additions and 4 deletions
|
@ -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