summaryrefslogtreecommitdiff
path: root/guix/scripts/home.scm
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2021-09-30 16:50:52 +0300
committerEfraim Flashner <efraim@flashner.co.il>2021-10-04 11:26:43 +0300
commit6a544b2130c7b0b2a6f5798b3195f5db90743143 (patch)
treebbc280e04b2ad6545e9044be6d8e05ea93475c83 /guix/scripts/home.scm
parent5333d2cac6c22a296f33716bb27749bbfb3fc369 (diff)
downloadguix-patches-6a544b2130c7b0b2a6f5798b3195f5db90743143.tar
guix-patches-6a544b2130c7b0b2a6f5798b3195f5db90743143.tar.gz
scripts: home: Support dry-run.
* guix/scripts/home.scm (%options): Add option for dry-run.
Diffstat (limited to 'guix/scripts/home.scm')
-rw-r--r--guix/scripts/home.scm3
1 files changed, 3 insertions, 0 deletions
diff --git a/guix/scripts/home.scm b/guix/scripts/home.scm
index a466f3deb1..a4d4aaa562 100644
--- a/guix/scripts/home.scm
+++ b/guix/scripts/home.scm
@@ -111,6 +111,9 @@ Some ACTIONS support additional ARGS.\n"))
(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")))