about summary refs log tree commit diff
path: root/src/nix/sigs.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2017-06-07T16·41+0200
committerEelco Dolstra <edolstra@gmail.com>2017-06-07T16·41+0200
commit186571965dccf57d15b9f37c1cca92a57187b7b3 (patch)
tree79c38bc54d9a3e2bbd296a094ca988c13088fb09 /src/nix/sigs.cc
parentaa952d5f0bc623a1584f2d589209f586e594c75f (diff)
Don't show flags from config settings in "nix --help"
Diffstat (limited to 'src/nix/sigs.cc')
-rw-r--r--src/nix/sigs.cc9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/nix/sigs.cc b/src/nix/sigs.cc
index 3dd03771619f..0e3eb9b694b4 100644
--- a/src/nix/sigs.cc
+++ b/src/nix/sigs.cc
@@ -13,8 +13,13 @@ struct CmdCopySigs : StorePathsCommand
 
     CmdCopySigs()
     {
-        mkFlag('s', "substituter", {"store-uri"}, "use signatures from specified store", 1,
-            [&](Strings ss) { substituterUris.push_back(ss.front()); });
+        mkFlag()
+            .longName("substituter")
+            .shortName('s')
+            .labels({"store-uri"})
+            .description("use signatures from specified store")
+            .arity(1)
+            .handler([&](Strings ss) { substituterUris.push_back(ss.front()); });
     }
 
     std::string name() override