guix package: Allow `guix package -u' to fuction as before.
This is a follow up to 6ddf97f81b
* guix/scripts/package.scm (%options) <"-u">: Only check for a flag when
there is an ARG after '-u'.
master
parent
d0386db493
commit
a60667245f
|
@ -486,7 +486,7 @@ Install, remove, or upgrade packages in a single transaction.\n"))
|
|||
arg-handler))))
|
||||
(option '(#\u "upgrade") #f #t
|
||||
(lambda (opt name arg result arg-handler)
|
||||
(when (string-prefix? "-" arg)
|
||||
(when (and arg (string-prefix? "-" arg))
|
||||
(warning (G_ "upgrade regexp '~a' looks like a \
|
||||
command-line option~%")
|
||||
arg)
|
||||
|
|
Reference in New Issue