mirror of
https://github.com/NixOS/nix
synced 2025-06-29 02:11:15 +02:00
nix: Support -j flag
This commit is contained in:
parent
7ce60a81ba
commit
34fa8ce917
2 changed files with 9 additions and 4 deletions
|
@ -35,6 +35,15 @@ MixCommonArgs::MixCommonArgs(const string & programName)
|
|||
}
|
||||
});
|
||||
|
||||
mkFlag()
|
||||
.longName("max-jobs")
|
||||
.shortName('j')
|
||||
.label("jobs")
|
||||
.description("maximum number of parallel builds")
|
||||
.handler([=](std::string s) {
|
||||
settings.set("max-jobs", s);
|
||||
});
|
||||
|
||||
std::string cat = "config";
|
||||
globalConfig.convertToArgs(*this, cat);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue