From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: Guix command line flag consistency Date: Sun, 23 Apr 2017 00:46:25 +0200 Message-ID: <8737d0hxha.fsf@gnu.org> References: <0f4a960b-68dd-8f82-6bea-f6ce08d59e91@swierczek.io> <4d3b4372-311a-45b8-67b0-0732245fba6f@swierczek.io> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55233) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d23nS-00033q-VQ for guix-devel@gnu.org; Sat, 22 Apr 2017 18:46:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d23nP-0001HY-T8 for guix-devel@gnu.org; Sat, 22 Apr 2017 18:46:31 -0400 In-Reply-To: <4d3b4372-311a-45b8-67b0-0732245fba6f@swierczek.io> (Mike Swierczek's message of "Sat, 15 Apr 2017 15:34:40 -0400") 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: Mike Swierczek Cc: guix-devel@gnu.org Hello, Mike Swierczek skribis: > On 04/15/2017 01:43 PM, Hartmut Goebel wrote: > >> Am 14.04.2017 um 22:57 schrieb Mike Swierczek: >>> I'd much prefer if both the short and long command line arguments >>> accepted their argument in any arrangement. >> I also stumbled over "--show=3Dfoo" failing. I suggest guix should follow >> the GNU command lien parsing conventions. Maybe this could be extended >> with the possibility to unambiguous shorten long options. >> > Good idea on unambiguous shortening of long options. That sounds good to= o. > > I don't mind trying to implement all of this, I just want to make sure > the team likes the idea first. An interesting option (heh!) would be to implement what argp does, which is to allow users to write a prefix of the long option if it=E2=80=99s unambiguous: https://www.gnu.org/software/libc/manual/html_node/Argp.html Apart from that, the conventions we follow are indeed those: https://www.gnu.org/prep/standards/html_node/Command_002dLine-Interfaces.= html though the parser we use, (srfi srfi-37), has small differences. Ludo=E2=80=99.