describe: Fix 'format' option.

Fix ‘guix describe’ ignores ‘--format=FORMAT’ option.

* guix/scripts/describe.scm (%options): Fix 'format' option.
This commit is contained in:
Oleg Pykhalov 2018-11-21 01:19:54 +03:00
parent ab5d91dd50
commit 3dd28aa37c
No known key found for this signature in database
GPG Key ID: 167F8EA5001AFA9C
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@
(lambda (opt name arg result)
(unless (member arg '("human" "channels"))
(leave (G_ "~a: unsupported output format~%") arg))
(alist-cons 'format 'channels result)))
(alist-cons 'format (string->symbol arg) result)))
(option '(#\h "help") #f #f
(lambda args
(show-help)