From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id kEdAC7GpYWBQLQAAgWs5BA (envelope-from ) for ; Mon, 29 Mar 2021 12:19:29 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id qEAmBbGpYWAfMgAAB5/wlQ (envelope-from ) for ; Mon, 29 Mar 2021 10:19:29 +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 A2FA7294B9 for ; Mon, 29 Mar 2021 12:19:28 +0200 (CEST) Received: from localhost ([::1]:59438 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lQozX-0006qM-AT for larch@yhetil.org; Mon, 29 Mar 2021 06:19:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34292) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lQozK-0006p0-FT for guix-patches@gnu.org; Mon, 29 Mar 2021 06:19:14 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:36378) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lQozB-0003mP-VY for guix-patches@gnu.org; Mon, 29 Mar 2021 06:19:09 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lQozB-0008M8-RX for guix-patches@gnu.org; Mon, 29 Mar 2021 06:19:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#47464] [PATCH 8/8] scripts: show: Replace 'args-fold*' by 'parse-command-line'. Resent-From: zimoun Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 29 Mar 2021 10:19:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 47464 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 47464@debbugs.gnu.org Cc: zimoun Received: via spool by 47464-submit@debbugs.gnu.org id=B47464.161701311232023 (code B ref 47464); Mon, 29 Mar 2021 10:19:05 +0000 Received: (at 47464) by debbugs.gnu.org; 29 Mar 2021 10:18:32 +0000 Received: from localhost ([127.0.0.1]:47917 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lQoye-0008KM-Gs for submit@debbugs.gnu.org; Mon, 29 Mar 2021 06:18:32 -0400 Received: from mail-wr1-f53.google.com ([209.85.221.53]:46689) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lQoyU-0008Ig-ND for 47464@debbugs.gnu.org; Mon, 29 Mar 2021 06:18:23 -0400 Received: by mail-wr1-f53.google.com with SMTP id v4so12219460wrp.13 for <47464@debbugs.gnu.org>; Mon, 29 Mar 2021 03:18:22 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=mrANYjHGVYi7YBCcZSQ9njXZAdYmv1Bkmh1aTjEaByM=; b=CyDNbeLPPU+G4QreFElcH4HJnBep10cwGIe/QFABEjcpPWULYvgPDCPbicuBEg8sW0 mHRXarM+Dg3R741/xMHw/8YjEsA/9ZKmEvjGVq3zIrhPCplzMk2Hz4OZ4WjWqrx+SWdf U6SAWcEkBKZjXB5cCn2kGuz8gI4eYNC+n0rlKp64Q6TlH75dATsBoz4KyM3uJeZveA3z V6UL8bYyJRqxu5clDsl3jiLfNBor6I2SZj543vXsVN+vBwmO6ycl4aNykgTGWkYgqtvd vFRN1DPGrdML5wz1jBOF9b3hvUoN1keazNdezU7AhAlThBE2FhtW8vvtwsm7IXpk4eBo 7mQQ== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=mrANYjHGVYi7YBCcZSQ9njXZAdYmv1Bkmh1aTjEaByM=; b=jsTNnqmg4o9IdmEdJHgD1YxDAQxC+gUjz+zruu3EFy1RvmNx66iQLgA13RFzqmMC/H Vvrc8xrPfeEaGMc9UDAfpMz+RZonzaF0jxPlACvTMwFIX+O0xs2BPgoSmEDgNjC+pwHI L/mK6U+65+fMRabqow5q76cV1TUy3UBX+iuK5CHwt2EUDzM15t4cj5Ef2zVH5BXgtry2 0Mr2lPIB8O/m/l+6rTEF/7zVKiCeE1NHhGDu8PPm01BYlHgOT7LF3yPCsgOi3hRuIe9t MG8UIizSsvQBysQHqEQzYApJXqCIRapDNB3CoplpMzrKfWdo7+Ih9uXFUL2Bd/VJwjOv v/KA== X-Gm-Message-State: AOAM530OBgflbenR26j3Tuh0FIykMioN4roaV948eOofA9VnGAFw+Nzh nJCCLOMZzCusUp3bLSlPf1s9dvFQb8o= X-Google-Smtp-Source: ABdhPJy3Dqblf64TlX0QpVj3owY4k6NvH51Nvwc1GAWYXf2iSNEeGtlt9MNruIS7bq/Ajw3Km/YEzA== X-Received: by 2002:a5d:698e:: with SMTP id g14mr27067949wru.127.1617013097157; Mon, 29 Mar 2021 03:18:17 -0700 (PDT) Received: from localhost.localdomain ([193.48.40.110]) by smtp.gmail.com with ESMTPSA id 135sm25291792wma.44.2021.03.29.03.18.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Mar 2021 03:18:16 -0700 (PDT) From: zimoun Date: Mon, 29 Mar 2021 12:18:06 +0200 Message-Id: <20210329101806.54004-8-zimon.toutoune@gmail.com> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210329101806.54004-1-zimon.toutoune@gmail.com> References: <20210329101806.54004-1-zimon.toutoune@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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=1617013168; 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=mrANYjHGVYi7YBCcZSQ9njXZAdYmv1Bkmh1aTjEaByM=; b=C+Q+bW+gd5NpAI/YihyBAsf9fb4oyiPmSRZuzFchQzazQdajrUZZJJTJhViDRSBW7Tj9xa S7pqxSdjlDdxM2vn2xO/mmlZALox+LS2eUicaAsyEBmB3Yq3PtUbBAk4VI2tNkaoxVGIOl nMdjDK3783Dzq0x5l8xMddEejS1D9xt/+QtAz56pHJqOGAYkaAtUffp/pdOmZUR5FA5GPl 6+uoSWemnMju1sHagmfcNBdF3s0kwoX7K30WwMCB2zP/xyrbIsMzjkJrIxORqrhN65VxoE nDcIj+pm/q6OnKycsOy7V30GJKeTBWyZOOCkevf1w9A/cToMvFrL91sw1R0Adw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1617013168; a=rsa-sha256; cv=none; b=c1xL/7zI9yaYW3LYq2goSJEAFOCCMp2hQEplDri1/GEaoQuIf0cjQSwUreni04KBcGTCQl QtzZx8OhRPZyKKvv7r9da+a8yokKvAkzcgJp6ttvB+9MC2+ZIb6P4I/wxpCmqQt6ufWUk8 x58Fpc75gASzd5t4pa5kva//jOjiJz4C52ltjj5QXLdwTfqR3ULIzlTCaZb7bwYnLnFlNS hdPDa/HNqmmRfM4ReBQHhDqxsa+d7IlbTCnm4mMo11RRqaY0Shd1nsYjhrOh3X34QckN7J 3nhJYnDpDz7ldn2sGIQ6mRtkJ35vTXQxSjTHIIXtLPWusp8mS3IiA39bH5XYig== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=CyDNbeLP; 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: -1.32 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=CyDNbeLP; 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: A2FA7294B9 X-Spam-Score: -1.32 X-Migadu-Scanner: scn0.migadu.com X-TUID: 8dMPGyL0GPgz * guix/scripts/show.scm (define-command): Replace 'args-fold*' by 'parse-command-line'. --- guix/scripts/show.scm | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/guix/scripts/show.scm b/guix/scripts/show.scm index 535d03c1a6..c747eedd21 100644 --- a/guix/scripts/show.scm +++ b/guix/scripts/show.scm @@ -1,5 +1,5 @@ ;;; GNU Guix --- Functional package management for GNU -;;; Copyright © 2019 Simon Tournier +;;; Copyright © 2019, 2021 Simon Tournier ;;; ;;; This file is part of GNU Guix. ;;; @@ -66,11 +66,9 @@ This is an alias for 'guix package --show='.\n")) result)) (define opts - (args-fold* args %options - (lambda (opt name arg . rest) - (leave (G_ "~A: unrecognized option~%") name)) - handle-argument - '())) + (parse-command-line args %options (list (list)) + #:build-options? #f + #:argument-handler handle-argument)) (unless (assoc-ref opts 'query) (leave (G_ "missing arguments: no package to show~%"))) -- 2.30.1