about summary refs log tree commit diff
path: root/src/nix/verify.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/nix/verify.cc')
-rw-r--r--src/nix/verify.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/nix/verify.cc b/src/nix/verify.cc
index da15678088d0..fdbc2b0fde33 100644
--- a/src/nix/verify.cc
+++ b/src/nix/verify.cc
@@ -36,6 +36,20 @@ struct CmdVerify : StorePathsCommand
         return "verify the integrity of store paths";
     }
 
+    Examples examples() override
+    {
+        return {
+            Example{
+                "To verify the entire Nix store:",
+                "nix verify --all"
+            },
+            Example{
+                "To check whether each path in the closure of Firefox has at least 2 signatures:",
+                "nix verify -r -n2 --no-contents $(type -p firefox)"
+            },
+        };
+    }
+
     void run(ref<Store> store, Paths storePaths) override
     {
         restoreAffinity(); // FIXME