mirror of
https://github.com/NixOS/nix.git
synced 2024-11-29 10:12:28 +00:00
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 New Issue
Block a user