guix download: Add supported formats to '--help'.

* guix/scripts/download.scm (show-help): Add supported formats.
This commit is contained in:
Nikita Karetnikov 2013-04-21 18:41:30 +00:00
parent 238328c990
commit bfda2997c8
1 changed files with 6 additions and 3 deletions

View File

@ -55,11 +55,14 @@ store path."
`((format . ,bytevector->nix-base32-string))) `((format . ,bytevector->nix-base32-string)))
(define (show-help) (define (show-help)
(display (_ "Usage: guix download [OPTION]... URL (display (_ "Usage: guix download [OPTION] URL
Download the file at URL, add it to the store, and print its store path Download the file at URL, add it to the store, and print its store path
and the hash of its contents.\n")) and the hash of its contents.
Supported formats: 'nix-base32' (default), 'base32', and 'base16'
('hex' and 'hexadecimal' can be used as well).\n"))
(format #t (_ " (format #t (_ "
-f, --format=FMT write the hash in the given format (default: `nix-base32')")) -f, --format=FMT write the hash in the given format"))
(newline) (newline)
(display (_ " (display (_ "
-h, --help display this help and exit")) -h, --help display this help and exit"))