From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id 4KKNCGnZN2W+3AAA9RJhRA:P1 (envelope-from ) for ; Tue, 24 Oct 2023 16:49:13 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 4KKNCGnZN2W+3AAA9RJhRA (envelope-from ) for ; Tue, 24 Oct 2023 16:49:13 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id DD9FA42099 for ; Tue, 24 Oct 2023 16:49:12 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=RdpbQwL5; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1698158953; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=fV2RP7quYVbY4EWlpN00C6ZggZZzIpiE49SPSOuy9Qc=; b=kq4jBQwzW49LTjaQ9qqTYpCxhiyoVp2TCa6cGfTYw7ULQ8s5z+VSZMwq/K91kZwGWHfEAf FriZDWyv6xb/peKU/O1SuNpoCySoQjNnLTi/YTYRsa9FcXkGxTc1Ct9aInialK4Pt5fGDg pEep0+gme5/Ulo8mxcs/jqjHc0OnP73+Nh0NQJaye6MrF6T/BFt3bxPxMQ+Eq41mt5L49o WIWVmvKi/HqvD9Ak9YBVNzP1n9MsSVl0ua7Rq9jifK4qvbfi4Vy/j66vdRazICrgGs4GzB R0V8N2bxV/CDYXof3W6waaGsn+9qz+mXcu+1RVKSCgdqD4kPjwb4AxVkulLlXg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=RdpbQwL5; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1698158953; a=rsa-sha256; cv=none; b=G4uEbVy191HQ8Nr8KdKedxeWdikaoCzTjMZH8WffDwsgxx5Puh1nd78ukVTX0/rQWNWEt+ cV/v0k0khceryLyRCkNJQ6eumwaavI2MaNnoF1EosgJNNm3KOBRp+aFasRN0pAkm+TAwuz /dD4qzs9bzgCU1f7bx6Yt063N8S/sWJwiP8iZEPqR2CAbD9I0IK9b+iCGDGqBGLwgcvHNQ AjFCmDt8MORgYYPXe601/Uv/jMWgyWLY4KHcMitXgOMdxJeF6uT4IvijylWG/vgeQqPeM/ bo6EKoXnzYSi0aHbHBkz9pXE2oIlNRyrgzGWBRwny0ku22qIKulVHFKs3eHy5g== Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qvIiD-00072d-Hq; Tue, 24 Oct 2023 10:48:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qvIhw-0006uj-NZ for bug-guix@gnu.org; Tue, 24 Oct 2023 10:48:38 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qvIht-0004sm-Fe for bug-guix@gnu.org; Tue, 24 Oct 2023 10:48:36 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qvIiM-0008Kg-Ks for bug-guix@gnu.org; Tue, 24 Oct 2023 10:49:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#66358: Some options are really subcommands + ignore arguments Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 24 Oct 2023 14:49:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 66358 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: Simon Tournier Cc: control@debbugs.gnu.org, Tobias Geerinckx-Rice , "Perry, Daniel J" , 66358@debbugs.gnu.org Received: via spool by 66358-submit@debbugs.gnu.org id=B66358.169815894132013 (code B ref 66358); Tue, 24 Oct 2023 14:49:02 +0000 Received: (at 66358) by debbugs.gnu.org; 24 Oct 2023 14:49:01 +0000 Received: from localhost ([127.0.0.1]:56141 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qvIiL-0008KF-1I for submit@debbugs.gnu.org; Tue, 24 Oct 2023 10:49:01 -0400 Received: from mail-qk1-x72c.google.com ([2607:f8b0:4864:20::72c]:43077) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qvIiF-0008Iw-4k; Tue, 24 Oct 2023 10:48:59 -0400 Received: by mail-qk1-x72c.google.com with SMTP id af79cd13be357-778a108ae49so420745585a.0; Tue, 24 Oct 2023 07:48:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698158899; x=1698763699; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=fV2RP7quYVbY4EWlpN00C6ZggZZzIpiE49SPSOuy9Qc=; b=RdpbQwL5D9FiNG146GTj9UbTJuHU5GK17XzIC5fOIk1BLDq2na0L+PtSdQzD7zGK6V gjb04qVVVeZuJ92NqJNf7zQMms2Z3W/aXlwmhJ14GUFERJ04GjEMkJ6cblCuZZi5Aaqm 5OG1JVVkjmiENxiNYni903JRjOSJPvsmfaO36qHqH/GP++XArhwe61Rv2xoMZWWSutC6 BEmDBmX9v4BQBB3pq8NZ0UYUJc2mYrt/OIC6hz0DPaouGSrZV0CapIz+OzflEJLHnKO1 83Rwu2557lJWWjJ+wWgB2YNbIgFB6jpR7vic1twYt3a0rO81GrszQVnYBg7OU/5RLa91 5Yww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698158899; x=1698763699; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=fV2RP7quYVbY4EWlpN00C6ZggZZzIpiE49SPSOuy9Qc=; b=xIurvt1uLldY2zpTvTa9Sd5hRrto6UtabpxDvxEcXquYCTKzGpLvTopPl7nV7GHNSc EnnJHwQDPlvccwc7WrqkOC0OvVZb01Y3ooAJu6rHWGMRnQhgjFq4tgaboQil5KekqEel SXv1PHNKoDZ6S31pYfl3o6g6Ybg7ez2qGlRHZFx2KUTkl/geFVcB8SBPC0YfMhPLa0qQ 6G+exHNGWHLPq9OxEQzBtZIYOQ1RoMPIYl1LPOSS2ce2CfllAmvgQkKlJ5yrmCRGhw9w d/MQ4TaxpFn/JBzlP7urfCwmgqnaSDrTRloHFHebP8/UXypm2hkNKlav+hT9PMHCOk2S 8liA== X-Gm-Message-State: AOJu0YwFr/tzO+YmID2KFW6Wm5t3/jnbE3ttd0KmDMI1+VDlwFktTpzY xZrvIJmjea0akDtMsWra9aGpGqUN1MKpFw== X-Google-Smtp-Source: AGHT+IEHhod0sfBZ8y7Kqh8b38APeWiHGOtNlWtYugiKonJpJuP+4v50DAgANRnIZAqgtAiM2fxZlg== X-Received: by 2002:a05:620a:4088:b0:76f:1614:577a with SMTP id f8-20020a05620a408800b0076f1614577amr21771314qko.5.1698158899575; Tue, 24 Oct 2023 07:48:19 -0700 (PDT) Received: from hurd (dsl-10-148-194.b2b2c.ca. [72.10.148.194]) by smtp.gmail.com with ESMTPSA id h20-20020a05620a13f400b007743671a41fsm3487827qkl.72.2023.10.24.07.48.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Oct 2023 07:48:19 -0700 (PDT) From: Maxim Cournoyer In-Reply-To: <86pm1kd9kd.fsf@gmail.com> (Simon Tournier's message of "Thu, 12 Oct 2023 01:27:14 +0200") References: <74541e429369739b82716cd72ee3b511@tobias.gr> <86pm1kd9kd.fsf@gmail.com> Date: Tue, 24 Oct 2023 10:48:18 -0400 Message-ID: <87h6mg3wlp.fsf_-_@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: 4.40 X-Spam-Score: 4.40 X-Migadu-Queue-Id: DD9FA42099 X-Migadu-Scanner: mx2.migadu.com X-TUID: L/9e8QxGCKeU Hi Simon, Simon Tournier writes: > Hi, > > On Mon, 09 Oct 2023 at 14:25, Tobias Geerinckx-Rice via Bug reports > for GNU Guix wrote: > >> I think it would be less surprising if these =E2=80=98single, mutually e= xclusive=20 >> actions=E2=80=99 should always be (sub)subcommands, e.g., =E2=80=98guix = archive import=E2=80=99,=20 >> =E2=80=98guix archive authorize=E2=80=99, =E2=80=A6 > > I am proposing to error for ambiguous cases as, > > $ ./pre-inst-env guix archive --import --authorize hello < /tmp/hello= .nar > guix archive: error: ambiguous options: "authorize" with "import" > > See attached patch. WDYT? > > Please note that it errors when at least 2 options are ambiguous. So if > there is 3, you get the =E2=80=9Ctwo first ones=E2=80=9C. It seems a reasonable improvement to me, but I think *all* the incompatible errors should be accumulated and printed in one go. --=20 Thanks, Maxim