From 81c0b52bd6301a7ded157b270097a8074c8f2d50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ludovic=20Court=C3=A8s?= Date: Sun, 22 Mar 2020 12:25:39 +0100 Subject: copy: Actually implement '--dry-run'. * guix/scripts/copy.scm (%options): Add '--dry-run'. --- guix/scripts/copy.scm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'guix') diff --git a/guix/scripts/copy.scm b/guix/scripts/copy.scm index 2542df6b19..fdb684c6b6 100644 --- a/guix/scripts/copy.scm +++ b/guix/scripts/copy.scm @@ -138,6 +138,10 @@ Copy ITEMS to or from the specified host over SSH.\n")) (let ((level (string->number* arg))) (alist-cons 'verbosity level (alist-delete 'verbosity result))))) + (option '(#\n "dry-run") #f #f + (lambda (opt name arg result) + (alist-cons 'dry-run? #t (alist-cons 'graft? #f result)))) + (option '(#\h "help") #f #f (lambda args (show-help) -- cgit v1.2.3