From patchwork Mon Mar 29 10:16:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Tournier X-Patchwork-Id: 46 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 5502627BC64; Mon, 29 Mar 2021 11:17:15 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,T_DKIM_INVALID,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id DE5E927BC63 for ; Mon, 29 Mar 2021 11:17:14 +0100 (BST) Received: from localhost ([::1]:59170 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lQoxO-0006bX-41 for patchwork@mira.cbaines.net; Mon, 29 Mar 2021 06:17:14 -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 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+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches 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