forked from lix-project/lix
Fix arity of --exclude
flag in nix search
Due to incorrectly using the Handler(vector<string>*) constructor the `--exclude` flag would swallow all proceeding arguments instead of just one.
This commit is contained in:
parent
7e301fd74e
commit
4ade8a5f25
|
@ -34,7 +34,9 @@ struct CmdSearch : InstallableCommand, MixJSON
|
||||||
.shortName = 'e',
|
.shortName = 'e',
|
||||||
.description = "Hide packages whose attribute path, name or description contain *regex*.",
|
.description = "Hide packages whose attribute path, name or description contain *regex*.",
|
||||||
.labels = {"regex"},
|
.labels = {"regex"},
|
||||||
.handler = Handler(&excludeRes),
|
.handler = {[this](std::string s) {
|
||||||
|
excludeRes.push_back(s);
|
||||||
|
}},
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue