Subject: [PATCH] scripts: home: Support dry-run.
From: Efraim Flashner <[email-masked]>
To: [email-masked]
Date: Thu, 30 Sep 2021 16:53:49 +0300
List-Id: <debbugs-submit.debbugs.gnu.org>

* guix/scripts/home.scm (%options): Add option for dry-run.
---
 guix/scripts/home.scm | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/guix/scripts/home.scm b/guix/scripts/home.scm
index 75df6d707d..87529b0c3c 100644
--- a/guix/scripts/home.scm
+++ b/guix/scripts/home.scm
@@ -107,6 +107,9 @@ (define %options
                  (lambda args
                    (show-help)
                    (exit 0)))
+         (option '(#\n "dry-run") #f #f
+                 (lambda (opt name arg result)
+                   (alist-cons 'dry-run? #t result)))
          (option '(#\V "version") #f #f
                  (lambda args
                    (show-version-and-exit "guix show")))

base-commit: 7b59508ca711d1fe299de3f8d9710da36aeb6829
-- 
2.33.0