aboutsummaryrefslogtreecommitdiff
path: root/src/nix
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-01-08 10:44:55 +0100
committerEelco Dolstra <edolstra@gmail.com>2021-01-08 10:44:55 +0100
commit48a9be2aabf6620ceb00caf7c4c917e4e0a81446 (patch)
tree103da98df2372ade90a17cec96416682f8189326 /src/nix
parent920e6a6920fa0ae82150bb2b0c210a03ccf5919b (diff)
Remove mkIntFlag
Diffstat (limited to 'src/nix')
-rw-r--r--src/nix/verify.cc10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/nix/verify.cc b/src/nix/verify.cc
index 16d42349f..620109aac 100644
--- a/src/nix/verify.cc
+++ b/src/nix/verify.cc
@@ -20,6 +20,7 @@ struct CmdVerify : StorePathsCommand
{
mkFlag(0, "no-contents", "do not verify the contents of each store path", &noContents);
mkFlag(0, "no-trust", "do not verify whether each store path is trusted", &noTrust);
+
addFlag({
.longName = "substituter",
.shortName = 's',
@@ -27,7 +28,14 @@ struct CmdVerify : StorePathsCommand
.labels = {"store-uri"},
.handler = {[&](std::string s) { substituterUris.push_back(s); }}
});
- mkIntFlag('n', "sigs-needed", "require that each path has at least N valid signatures", &sigsNeeded);
+
+ addFlag({
+ .longName = "sigs-needed",
+ .shortName = 'n',
+ .description = "require that each path has at least N valid signatures",
+ .labels = {"n"},
+ .handler = {&sigsNeeded}
+ });
}
std::string description() override