guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#50915] [PATCH] scripts: home: Support dry-run.


From: Efraim Flashner
Subject: [bug#50915] [PATCH] scripts: home: Support dry-run.
Date: Thu, 30 Sep 2021 16:53:49 +0300

* 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

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]