From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cyril Roelandt Subject: Re: Installing multiple packages at once Date: Sun, 22 Sep 2013 23:08:03 +0200 Message-ID: <523F5C33.7060304@gmail.com> References: <87a9j4ppr6.fsf@karetnikov.org> <87r4cg4kl7.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38952) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VNrEk-0003Nf-MA for guix-devel@gnu.org; Sun, 22 Sep 2013 17:30:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VNrEf-000407-HA for guix-devel@gnu.org; Sun, 22 Sep 2013 17:30:38 -0400 Received: from mail-wi0-x233.google.com ([2a00:1450:400c:c05::233]:38644) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VNrEf-0003zs-8m for guix-devel@gnu.org; Sun, 22 Sep 2013 17:30:33 -0400 Received: by mail-wi0-f179.google.com with SMTP id hm2so1516718wib.12 for ; Sun, 22 Sep 2013 14:30:32 -0700 (PDT) In-Reply-To: <87r4cg4kl7.fsf@gnu.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel@gnu.org On 09/22/2013 11:23 PM, Ludovic Courtès wrote: > Nikita Karetnikov skribis: > >> Someone on IRC said that they would prefer to write ‘-i foo bar baz’ >> instead of ‘-i foo -i bar -i baz’. Should we change this or allow both >> variants? And how hard would it be? > > Currently -i takes an argument, hence this syntax. > > What would be the syntax? Remember we want to allow users to both > install and remove packages in a single transaction, as in: > > guix package -r bigloo -r hop -i guile -i racket > > We could imagine something like: > > guix package -r bigloo hop -i guile racket > > but I don’t think SRFI-37 allows us to know that ‘bigloo’ and ‘hop’ > occurred after ‘-r’ whereas the others occurred after ‘-i’. And I don’t > really like the syntax. > > In short, while open to suggestions, I’m mostly in favor of the > status quo. :-) > Could we use: guix package -i foo,bar ? Cyril.