deploy: Handle "--version".

* guix/scripts/deploy.scm (%options): Add "--version".
This commit is contained in:
Ludovic Courtès 2019-11-18 22:59:21 +01:00
parent 6fbd8fde2f
commit 1bdb63e73b
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -62,6 +62,10 @@ (define %options
(lambda args
(show-help)
(exit 0)))
(option '(#\V "version") #f #f
(lambda args
(show-version-and-exit "guix deploy")))
(option '(#\s "system") #t #f
(lambda (opt name arg result)
(alist-cons 'system arg