From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id iFnCOIigaWeUcQAAqHPOHw:P1 (envelope-from ) for ; Mon, 23 Dec 2024 17:40:25 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id iFnCOIigaWeUcQAAqHPOHw (envelope-from ) for ; Mon, 23 Dec 2024 18:40:25 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=gVSYlrTy; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=eble01qq; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1734975624; 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=YJ5Vy5dxPq51xQe7Vb/GlsdzOC4+4qsg8UXnfPE/sHo=; b=CE1/sMNrzJt2r6xqbudL/CQpPfr7jN0NdoR+T8E9bqMz4p/UPKD0bn/yGphISJYQfiIj2p o9P39ng098aW+PoHCU1CphZahEIYIZKTiHGkEanSZUrdTkiqrbvjzcJNiMNXxAzxQvsAzV BL19zuXg+bFdnHGhEzpfkgnyKJmsc5x0n7iYXGJ82IGf4hv3o7oDWYRCEChMhyKKhOFP/4 +HkvrtS3nLwCXq7hynYgu5FTIeuo9Zm1vsEfpe/gzsZ8QHflOrHiOmSVWfA/sRP2idenVr 9tFbzKkcNE/5ALnRvkmmNUAWM8ryBbcmzSAyHW8HKBmlGbtiKmHt26GLzZwamg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=gVSYlrTy; dkim=fail ("headers rsa verify failed") header.d=gnu.org header.s=fencepost-gnu-org header.b=eble01qq; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1734975624; a=rsa-sha256; cv=none; b=PpmZ/umXuhjUQk16G288ZXsoMZq7bpuCxalBr/h8oNHcU01mi0OEO6UbLqInyBVacRRH+G 1UB1XQDoIhpG4Zcmtxy32fsYW99g/TVw7dnsAwUSbnSqyXyVDFk167eVUMFQdzRZDIjnI/ EchmcUwqcYB22VFFRDV0Cx7fGjn+m/NgAd2PghXMnD8ntUvmq0barcPXzELwfvvTJGV0cr NJV/jv94b0Md/BSBFNWq3PYu0bsS1iAVIbGfyKIqedFpptImQMNcOqoBnjTlgUo+AYM4Wr ZHJrcE3hADHKJQnsR5a4B3Fq+g7Qi8ZqiCQlBhF2MHx/bUc854bfZ/iOL1EAPg== 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 6FBBB8A19A for ; Mon, 23 Dec 2024 18:40:24 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tPmPc-00017D-Bz; Mon, 23 Dec 2024 12:40:12 -0500 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 1tPmPT-00012Z-8J for guix-patches@gnu.org; Mon, 23 Dec 2024 12:40:06 -0500 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 1tPmPS-0004YT-Tp for guix-patches@gnu.org; Mon, 23 Dec 2024 12:40:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:References:In-Reply-To:From:To:Subject; bh=YJ5Vy5dxPq51xQe7Vb/GlsdzOC4+4qsg8UXnfPE/sHo=; b=gVSYlrTyMiAtjN+wQCG2P39IKi9SomBgNYQt8LhXUT7VdSIYyDL7EL0NuL2PPBGvp4TuDilUQNcw2qrmprhLP2ZQUL1sYiFBrWO0n+3ylrffXhZ20xiyfdpPv6I65J5q99kWPNXlZGGabhf4EnAlWShQtDHQqo6FMrMxbJWr05rhvvZbWLT0DMvyy2FNiEh5lG4bK2xQwjqomyTB6Jkx7NoxmZV6YHoMHSWejHeWjlk6Jd5KHQ/0RjAglJ24dOeP3Js1LL6FWjRbkS2tnaSf7cyLa2RO+djtqgkdUpQjSGvrxWA7OK2ONUv4E8GQAzrAffT9SePSDZ9Ul352aSD5Eg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tPmPS-0000s8-CB for guix-patches@gnu.org; Mon, 23 Dec 2024 12:40:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#74878] [PATCH 2/2] scripts: substitute: Improve the help output. Resent-From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 23 Dec 2024 17:40:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74878 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Richard Sent Cc: Josselin Poiret , Simon Tournier , Mathieu Othacehe , Tobias Geerinckx-Rice , 74878@debbugs.gnu.org, Christopher Baines Received: via spool by 74878-submit@debbugs.gnu.org id=B74878.17349755613240 (code B ref 74878); Mon, 23 Dec 2024 17:40:02 +0000 Received: (at 74878) by debbugs.gnu.org; 23 Dec 2024 17:39:21 +0000 Received: from localhost ([127.0.0.1]:55969 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tPmOm-0000qC-Q1 for submit@debbugs.gnu.org; Mon, 23 Dec 2024 12:39:21 -0500 Received: from eggs.gnu.org ([209.51.188.92]:39384) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tPmOj-0000py-Oc for 74878@debbugs.gnu.org; Mon, 23 Dec 2024 12:39:19 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tPmOc-0004Lg-RX; Mon, 23 Dec 2024 12:39:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-Version:Date:References:In-Reply-To:Subject:To: From; bh=YJ5Vy5dxPq51xQe7Vb/GlsdzOC4+4qsg8UXnfPE/sHo=; b=eble01qqX7iuoPpKnu7O NVfwEofpTs0rRjH6kVhAZ4YCPbFhmhgjYxiCy6WL/rK3nS1wIzrvSClA8XPNbl0S555r87lOWa7Gt h1QENpuyw2koOxCt5Zx/uNgQO1ZeYUlbhR9yTOqoDiwKj+Ga/N/jv8iTz89+5hmKaHH0nZIXnAUSU o9ArNfKaVFbST366BF65BatLg2vsbm7l66In4P9T+S61SUwtI6Od+x4kyd6Lc5c9TAeIx7xawO/47 EJ+sIykM0K4dFo0cX+Wd2i7NjYmionofL3BDZrPAg2fUowtClmF7cUTDlnvS3HkxAqJz0yIyNNatm WGjqHsgOohsgRQ==; From: Ludovic =?UTF-8?Q?Court=C3=A8s?= In-Reply-To: (Richard Sent's message of "Sat, 14 Dec 2024 19:26:47 -0500") References: Date: Mon, 23 Dec 2024 18:39:07 +0100 Message-ID: <87msgm8fk4.fsf@gnu.org> 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: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: -4.31 X-Spam-Score: -4.31 X-Migadu-Queue-Id: 6FBBB8A19A X-TUID: Bp96kL7wdrjq Hi, Richard Sent skribis: > Clarify that arguments are read from standard input and that --query expe= cts a > command. > > * guix/scripts/substitute.scm (show-help): Reword. > > Change-Id: Ifc197d5e10e43663f1e05039ce29086f6a21b943 [...] > (define (show-help) > (display (G_ "Usage: guix substitute OPTION [ARGUMENT]... > -Internal tool to substitute a pre-built binary to a local build.\n")) > +Internal tool to substitute a pre-built binary to a local build. > + > +ARGUMENT is read from standard input, not from the command line.\n")) I find this sentence confusing since the usage line above shows that it=E2=80=99s a command-line argument. But since there=E2=80=99s no such ar= gument, we can just remove =E2=80=9C[ARGUMENT]...=E2=80=9D from the usage line. > (display (G_ " > - --query report on the availability of substitutes for t= he > - store file names passed on the standard input")) > + --query COMMAND STORE-FILE ... > + Run query COMMAND with STORE-FILE to report on > + the availability of substitutes")) I think this also adds to the confusion since =E2=80=98--query=E2=80=99 doe= sn=E2=80=99t actually take any arguments. Note that the protocol =E2=80=98guix-daemon=E2=80=99 and =E2=80=98guix subs= titute=E2=80=99 is purposefully undocumented: it=E2=80=99s an implementation detail and users = are not supposed to use =E2=80=98guix substitute=E2=80=99 directly. Thoughts? Ludo=E2=80=99.