guix package: Warn when invoked with '-u -something'. Fixes <https://bugs.gnu.org/27820>. Reported by Hartmut Goebel <h.goebel@crazy-compilers.com>. * guix/scripts/package.scm (%options) <"-u">: Emit a warning when ARG starts with "-".
1 files changed, 5 insertions(+), 0 deletions(-) M guix/scripts/package.scm
M guix/scripts/package.scm => guix/scripts/package.scm +5 -0
@@ 486,6 486,11 @@ 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) (warning (G_ "upgrade regexp '~a' looks like a \ command-line option~%") arg) (warning (G_ "is this intended?~%"))) (let arg-handler ((arg arg) (result result)) (values (alist-cons 'upgrade arg ;; Delete any prior "upgrade all"