From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tanguy Le Carrour Subject: Re: guix package: Rename "generation" options Date: Tue, 12 Nov 2019 09:58:43 +0100 Message-ID: <20191112085843.h5gzy34ompkf7mto@rafflesia> References: <80a7f0b8-9fb0-239d-bc61-d99209e95cb3@crazy-compilers.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:43893) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iUS0e-0007yc-Vi for guix-devel@gnu.org; Tue, 12 Nov 2019 03:58:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iUS0d-0003Zv-Sn for guix-devel@gnu.org; Tue, 12 Nov 2019 03:58:48 -0500 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:47457) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iUS0d-0003X7-M3 for guix-devel@gnu.org; Tue, 12 Nov 2019 03:58:47 -0500 Content-Disposition: inline In-Reply-To: <80a7f0b8-9fb0-239d-bc61-d99209e95cb3@crazy-compilers.com> List-Id: "Development of GNU Guix and the GNU System distribution." 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" To: Hartmut Goebel Cc: guix-devel Hi Hartmut! Le 11/08, Hartmut Goebel a écrit : > i often stumble about generation related short-options being mixed lower > and upper-case: > >   -l, --list-generations[=PATTERN] >   -d, --delete-generations[=PATTERN] >   -S, --switch-generation=PATTERN > > I would prefer to have them consistent, so they are easier to remember. Speaking of consistency, I've been wondering for months why `guix system` and `guix package` do not work the same way!? One uses positional arguments, the other options! ``` $ guix package --list-generations[=PATTERN] $ guix package --delete-generations[=PATTERN] $ guix package --switch-generation=PATTERN ``` *vs* ``` $ guix system list-generations [PATTERN] $ guix system delete-generations [PATTERN] $ guix system switch-generation PATTERN ``` Is this on purpose?! I think `guix system` is better, as those are actions, not modifiers or options. Does this make sense?! Regards, -- Tanguy