1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-06 21:41:48 +02:00

Merge pull request #6695 from afishhh/search-fix-exclude

Fix arity of `--exclude` flag in `nix search`
This commit is contained in:
Eelco Dolstra 2022-06-21 16:12:04 +02:00 committed by GitHub
commit bbe7187db9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View file

@ -34,7 +34,9 @@ struct CmdSearch : InstallableCommand, MixJSON
.shortName = 'e',
.description = "Hide packages whose attribute path, name or description contain *regex*.",
.labels = {"regex"},
.handler = Handler(&excludeRes),
.handler = {[this](std::string s) {
excludeRes.push_back(s);
}},
});
}