Skip to content
Snippets Groups Projects
Commit 84934f40 authored by Ludovic Courtès's avatar Ludovic Courtès
Browse files

import: pypi: Gracefully handle wrong argument counts.

* guix/scripts/import/pypi.scm (guix-import-pypi): Use 'leave' to handle
  cases where ARGS has zero or two or more elements.
parent 467a3c93
No related branches found
No related tags found
No related merge requests found
......@@ -84,4 +84,8 @@ (define (parse-options)
(unless sexp
(leave (_ "failed to download meta-data for package '~a'~%")
package-name))
sexp)))))
sexp))
(()
(leave (_ "too few arguments~%")))
((many ...)
(leave (_ "too many arguments~%"))))))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment