nix: Respect -I, --arg, --argstr
Also, random cleanup to argument handling.
This commit is contained in:
parent
25f32625e2
commit
0d59f1ca49
26 changed files with 349 additions and 299 deletions
|
|
@ -38,12 +38,12 @@ struct CmdSearch : SourceExprCommand, MixJSON
|
|||
.longName("update-cache")
|
||||
.shortName('u')
|
||||
.description("update the package search cache")
|
||||
.handler([&](Strings ss) { writeCache = true; useCache = false; });
|
||||
.handler([&]() { writeCache = true; useCache = false; });
|
||||
|
||||
mkFlag()
|
||||
.longName("no-cache")
|
||||
.description("do not use or update the package search cache")
|
||||
.handler([&](Strings ss) { writeCache = false; useCache = false; });
|
||||
.handler([&]() { writeCache = false; useCache = false; });
|
||||
}
|
||||
|
||||
std::string name() override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue