copy: Actually implement '--dry-run'.
* guix/scripts/copy.scm (%options): Add '--dry-run'.master
parent
7473238f7d
commit
81c0b52bd6
|
@ -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)
|
||||
|
|
Reference in New Issue