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.
This commit is contained in:
parent
467a3c93db
commit
84934f40d1
|
@ -84,4 +84,8 @@ Import and convert the PyPI package for PACKAGE-NAME.\n"))
|
|||
(unless sexp
|
||||
(leave (_ "failed to download meta-data for package '~a'~%")
|
||||
package-name))
|
||||
sexp)))))
|
||||
sexp))
|
||||
(()
|
||||
(leave (_ "too few arguments~%")))
|
||||
((many ...)
|
||||
(leave (_ "too many arguments~%"))))))
|
||||
|
|
Loading…
Reference in New Issue