guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] guix package: allow multiple arguments after -i, -r, and -u


From: Ludovic Courtès
Subject: Re: [PATCH] guix package: allow multiple arguments after -i, -r, and -u
Date: Fri, 13 Dec 2013 23:35:35 +0100
User-agent: Gnus/5.130007 (Ma Gnus v0.7) Emacs/24.3 (gnu/linux)

Mark H Weaver <address@hidden> skribis:

> From 95c205364cd0cececb0a464fea6f4a328467ef54 Mon Sep 17 00:00:00 2001
> From: Mark H Weaver <address@hidden>
> 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 address@hidden specifies...”?

Thanks!

Ludo’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]