From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id AlAZDCipYWBRLgAAgWs5BA (envelope-from ) for ; Mon, 29 Mar 2021 12:17:12 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id 4Kc2BSipYWA7LwAAB5/wlQ (envelope-from ) for ; Mon, 29 Mar 2021 10:17:12 +0000 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 D30AB1E4C0 for ; Mon, 29 Mar 2021 12:17:11 +0200 (CEST) Received: from localhost ([::1]:59170 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lQoxL-0006bX-1z for larch@yhetil.org; Mon, 29 Mar 2021 06:17:11 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33922) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lQoxC-0006bE-L6 for guix-patches@gnu.org; Mon, 29 Mar 2021 06:17:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36345) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lQoxC-0002l4-Dn for guix-patches@gnu.org; Mon, 29 Mar 2021 06:17:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lQoxC-0008GJ-4A for guix-patches@gnu.org; Mon, 29 Mar 2021 06:17:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47464] [PATCH 0/8] scripts: Allow option hint for various subcommands. Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 29 Mar 2021 10:17:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 47464 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 47464@debbugs.gnu.org Cc: zimoun X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.161701301931745 (code B ref -1); Mon, 29 Mar 2021 10:17:02 +0000 Received: (at submit) by debbugs.gnu.org; 29 Mar 2021 10:16:59 +0000 Received: from localhost ([127.0.0.1]:47891 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lQox8-0008Fx-QW for submit@debbugs.gnu.org; Mon, 29 Mar 2021 06:16:59 -0400 Received: from lists.gnu.org ([209.51.188.17]:60782) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lQox7-0008Fp-WA for submit@debbugs.gnu.org; Mon, 29 Mar 2021 06:16:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:33912) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lQox7-0006b0-Qf for guix-patches@gnu.org; Mon, 29 Mar 2021 06:16:57 -0400 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]:42671) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lQox6-0002ep-6W for guix-patches@gnu.org; Mon, 29 Mar 2021 06:16:57 -0400 Received: by mail-wr1-x42b.google.com with SMTP id x13so12236237wrs.9 for ; Mon, 29 Mar 2021 03:16:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=one6RK/qDytY94qQ9J3EjPrykN24H5mezinMV1cl14A=; b=m6dXWk4QHGiywZ7SYy0D6bfi9OLvCCwsBa+gXmmdK3aZ3Lv6soygHZ1bm2IouPZnfe 4SYZhO5Tb8sROwHyoBBUjJdtgfknoq+34GHXy62fEFZ1ScCT4NpSy/TohPy4MCZk899V TnecYN16Nizm/IYXwcnNcwc6aE5RXL8wv+otdpyGxw/x0QCOkMQtxOReAvtbGxnM/ap2 g+K6me23xxQ2Jz9BdThp9Chmbf6Nk4XeFXCyJzK/QYNfr+p4d7OTcJTKkZEIZY5Hb+xZ ZVky8WlLzuisGa+zjUmfQguwF0yqF1+QWYMO14r3WUcW2COhngQU66PTWDzYL+SM0LSQ 5PjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=one6RK/qDytY94qQ9J3EjPrykN24H5mezinMV1cl14A=; b=GZo+XP9sOmFL/Ar/h6SJzGi4hw5XhgbHfmoCeVN+u9gg8lTjDJkKoCvAqkBCUhZ3iR vTYN98mEoUggXU5vh9uiFzfAZv4kH29NQ5EKM8UPETJrBD97+KmQH4f9p7BWU9wTbl0s NmIWWkroSIf1kQX7Z21BZiP0AIhC/vt5AAgIik87t+3sCnpFk0gNJ/8BL/oUcZBFeoXt dO0hlbm864n1RojbMBBkfm3CJQ+5vTrSOtDaqYXAHISna+yB0v3RFzD6v/EtU2ykzMZj ybF9ztslrkmJ0eQoQrxq42CWo3+W/tLAVp5fnfsDggLLWYr+OJ+K4AWOzmg6CeNFRheA TRVA== X-Gm-Message-State: AOAM531WZtMvRldHTCg/teQYCXAq73LjKY3xtrBdXVKegP6sybgRE7HD kVDCA20aSfevBYf9HFpgHu12zDO++j4= X-Google-Smtp-Source: ABdhPJw74wVBch9ir+QUQVIwQvtW+RHJ/N0i2Cpxkh3F4bmPEqUh+jBA2leeD1PsJANdQFeFt6qqTQ== X-Received: by 2002:adf:fd91:: with SMTP id d17mr27951034wrr.0.1617013014144; Mon, 29 Mar 2021 03:16:54 -0700 (PDT) Received: from localhost.localdomain ([193.48.40.110]) by smtp.gmail.com with ESMTPSA id g16sm29210039wrs.76.2021.03.29.03.16.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Mar 2021 03:16:53 -0700 (PDT) From: zimoun Date: Mon, 29 Mar 2021 12:16:38 +0200 Message-Id: <20210329101638.53217-1-zimon.toutoune@gmail.com> X-Mailer: git-send-email 2.30.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::42b; envelope-from=zimon.toutoune@gmail.com; helo=mail-wr1-x42b.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1617013031; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=one6RK/qDytY94qQ9J3EjPrykN24H5mezinMV1cl14A=; b=YH0P2vdbiJVscA0gbBEOmlZXGT2nQhIfItf6PO8yricOTfWAx2sRmmPYCHohBHtzEF7pbv VmqsUBS1FSKm3GQRo54CJGtijvGqYy+0AFQnpM7zR9A+P6W0V2ubfU0wMKBLZfCNoSeHW8 zzrHlk30JAz/q0Fh0jfiqHi6oLiaP3DXuIaxBnwDjxqo7dmwIIzBhS7aSv2X83KnF13uo5 VIyBrAkdTcCj/0FSjXr5EGAjMpSGnlnUSH5ZeJlBIs1dhnNb2y7oxmpFV9eFIoHY+/i+MC HVZHEtTnyk797vKEPzKgh/B7KXP2SiqR3DKXtj00ug6dSLxjnLK3sPHieJXl5g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1617013031; a=rsa-sha256; cv=none; b=dam8GLoU9stMtGxD1HLKDsPoKXElpuao0McU7v0xOvH5gskJCL4wVf6OKPZk0JPASc03IG vknNxwP+KsCNAo2qKqdtL/Aa09cngHgwwNtpTeETLLAvMJoznTIXs6GgGaq06UybfGoDqV y+wC96IIn+ggEDVV4BQEhJbOU1C3ZeY65kpaHz2Gl2zv5WZwYz8SXBs10/jarQww3r+l3X LkfL4T5iHRh5PV2iBCZoNtmNfiCAqdCjk7GuswXgvMQGBHWzHsoOlp7+i5xNQUuZk+yTc/ ALvQopuJ2yTON6/oEhYAd5v5v6tFfddpu92FRECBCRo1xfLa2fadgn0YRq7qJg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=m6dXWk4Q; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 2.68 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=m6dXWk4Q; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: D30AB1E4C0 X-Spam-Score: 2.68 X-Migadu-Scanner: scn0.migadu.com X-TUID: CYbOXiK1vfbl Hi, The patch set replaces all the 'args-fold*' by 'parse-command-line'. Doing so, all the option typos are hinted. It could be only one commit (squashing) but it appeared me easier in case something is wrong; I expect nothing! :-) I have checked trying various combinations. Note that "tests/guix-describe.sh" is SKIP because the test does not work when using worktree. Well, a double-check is really welcome. :-) All the remaining subcommands---authenticate, container, git, import, offload and substitute---needs a rewriting of how they parse the command line arguments. Cheers, simon zimoun (8): scripts: describe: Replace 'args-fold*' by 'parse-command-line'. scripts: discover: Replace 'args-fold*' by 'parse-command-line'. scripts: download: Replace 'args-fold*' by 'parse-command-line'. scripts: edit: Replace 'args-fold*' by 'parse-command-line'. scripts: publish: Replace 'args-fold*' by 'parse-command-line'. scripts: repl: Replace 'args-fold*' by 'parse-command-line'. scripts: search: Replace 'args-fold*' by 'parse-command-line'. scripts: show: Replace 'args-fold*' by 'parse-command-line'. guix/scripts/describe.scm | 10 ++++------ guix/scripts/discover.scm | 12 ++++++------ guix/scripts/download.scm | 17 ++++++++--------- guix/scripts/edit.scm | 10 ++++------ guix/scripts/publish.scm | 12 ++++++------ guix/scripts/repl.scm | 11 +++++------ guix/scripts/search.scm | 9 ++++----- guix/scripts/show.scm | 10 ++++------ 8 files changed, 41 insertions(+), 50 deletions(-) base-commit: 6e7ba45357078b31a369b23f8a9f38302dfcbb10 -- 2.30.1