Mark H Weaver <[email protected]> skribis:
> From 95c205364cd0cececb0a464fea6f4a328467ef54 Mon Sep 17 00:00:00 2001
> From: Mark H Weaver <[email protected]>
> Date: Fri, 13 Dec 2013 15:37:57 -0500
> Subject: [PATCH] guix package: allow multiple arguments after -i, -r, and -u.
>
> * guix/scripts/package.scm (%options): Adapt option processors to accept and
> return a second seed value: 'arg-handler', which handles bare arguments (if
> not false). The install, remove, and upgrade option processors return an
> arg-handler that repeat the same operation. All other option processors
> return #f as the arg-handler.
> (guix-package): Procedures passed to 'args-fold*' accept the new seed value
> 'arg-handler'. The 'operand-proc' uses 'arg-handler' (if not false).
Looks great to me!
Could you add a test in guix-package.sh, which could be just
guix package -i guile gcc -n
or similar?
Likewise, could you add an example in guix.texi that uses this syntax,
say just after “@var{options} specifies...”?
Thanks!
Ludo’.