From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id QCAlIGR4A2GumwAAgWs5BA (envelope-from ) for ; Fri, 30 Jul 2021 05:56:20 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id MMLdG2R4A2EyLQAA1q6Kng (envelope-from ) for ; Fri, 30 Jul 2021 03:56:20 +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 1E8892D636 for ; Fri, 30 Jul 2021 05:56:20 +0200 (CEST) Received: from localhost ([::1]:43434 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m9JdD-0007RA-3A for larch@yhetil.org; Thu, 29 Jul 2021 23:56:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59458) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m9Jcy-0006rM-4t for guix-patches@gnu.org; Thu, 29 Jul 2021 23:56:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:47153) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m9Jcx-0006CH-SZ for guix-patches@gnu.org; Thu, 29 Jul 2021 23:56:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m9Jcx-0003vV-RO for guix-patches@gnu.org; Thu, 29 Jul 2021 23:56:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49780] [PATCH 07/14] import: elpa: Use PARSE-COMMAND-LINE for options. Resent-From: Sarah Morgensen Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 30 Jul 2021 03:56:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49780 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 49780@debbugs.gnu.org Received: via spool by 49780-submit@debbugs.gnu.org id=B49780.162761733214935 (code B ref 49780); Fri, 30 Jul 2021 03:56:03 +0000 Received: (at 49780) by debbugs.gnu.org; 30 Jul 2021 03:55:32 +0000 Received: from localhost ([127.0.0.1]:58674 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m9JcS-0003si-1P for submit@debbugs.gnu.org; Thu, 29 Jul 2021 23:55:32 -0400 Received: from out0.migadu.com ([94.23.1.103]:28452) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m9JcN-0003sJ-0X for 49780@debbugs.gnu.org; Thu, 29 Jul 2021 23:55:27 -0400 X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mgsn.dev; s=key1; t=1627617326; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=zsoutCcvTxLsNTVvpGfNLG9KuRmFnRITiqbEGBf3yGI=; b=BQosh9914t7lA72smByk0coXSWvIlI2axA1d6LMwunoRn4lq/ycCdEcXXSjBlUhCNDahfE 2yiKfoviPxgKieqMTwhBy48813uwnFQJF4BKiVXaz7Vcs7sFbUl2Ifbz7JT+VXJ5JO63/Z +befgDYpAKj7NUoI0vljCpXvASc1fMo= From: Sarah Morgensen Date: Thu, 29 Jul 2021 20:55:03 -0700 Message-Id: <8fdf9feebd6ec374c15d0b80948fd985f1c2312a.1627617006.git.iskarian@mgsn.dev> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Migadu-Auth-User: iskarian@mgsn.dev 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=1627617380; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=zsoutCcvTxLsNTVvpGfNLG9KuRmFnRITiqbEGBf3yGI=; b=OQNlxX1vC6t1AxegBg08eEIttJl4ybCTcEJpXTUoFc4JlDP/gbP7h/Ts3ovkLdtLAeAViL 5X9/M5ke2pUcxgIw3we3alRLXlta4oHQOP+sKikHGVJ6GQMQ3dkcaT+sRuDgrugBeUDqyc eOLI8LnDbyBCXt2TiHNXSrebUL2n9MPnvSJL9kP/MTbVznlkgWrKnE7LzSu5PGniMOcguE jR+5xxVWom0bN+6ntaPdtoFdfe87BZDDUqpY6H4oO/bygql9taLVhvUBobcjuM4AeZ32fD QJPPGRi/IClAZNofTJtuBNS+Mg8BUHsn0cZvtEZsrCBDt4wbed6VgRJxJHrUZg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1627617380; a=rsa-sha256; cv=none; b=fB+BqaLf3MqtA33r+/bHpU7DXc84mhyW11wGuWbv2FzRiSHAVjjwNuiuJBl0jtE3Kmmzbz 9v/o0TMuY7YBWUiOxqdRTD6AXIAixh1qF62Rmz4Q+HTykHeC4ynxBgZSEEnpd5EwtAOOgi PNjMKfPNafm8AYmZJ/5L3e6T2yHFy6Yom2cHoMllADeen/WTEU6NUA9iDQH1O65Vb3ELIg XgycDncmGEJ5xh4hGC/8k9Lcb4lfGLDgWcOKTPr6pwOAI82wrslJalrEF2mgaAumGKDVsY 3VjvXy+jLjCYb71ZNhBSSQ3/7x2z8QUBYJi8IB2ww2AYwg01zQ3qGOfDDLLaYw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mgsn.dev header.s=key1 header.b=BQosh991; dmarc=fail reason="SPF not aligned (relaxed)" header.from=mgsn.dev (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: -0.31 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=mgsn.dev header.s=key1 header.b=BQosh991; dmarc=fail reason="SPF not aligned (relaxed)" header.from=mgsn.dev (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: 1E8892D636 X-Spam-Score: -0.31 X-Migadu-Scanner: scn1.migadu.com X-TUID: dSt46UIHk/RZ guix/scripts/import/elpa.scm (guix-import-elpa)[parse-options]: Use PARSE-COMMAND-LINE instead of ARGS-FOLD*. --- guix/scripts/import/elpa.scm | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/guix/scripts/import/elpa.scm b/guix/scripts/import/elpa.scm index d6b38e5c4b..052b0cc0e7 100644 --- a/guix/scripts/import/elpa.scm +++ b/guix/scripts/import/elpa.scm @@ -2,6 +2,7 @@ ;;; Copyright © 2015 Federico Beffa ;;; Copyright © 2018 Oleg Pykhalov ;;; Copyright © 2020 Martin Becze +;;; Copyright © 2021 Sarah Morgensen ;;; ;;; This file is part of GNU Guix. ;;; @@ -80,12 +81,8 @@ Import the latest package named PACKAGE-NAME from an ELPA repository.\n")) (define (guix-import-elpa . args) (define (parse-options) ;; Return the alist of option values. - (args-fold* args %options - (lambda (opt name arg result) - (leave (G_ "~A: unrecognized option~%") name)) - (lambda (arg result) - (alist-cons 'argument arg result)) - %default-options)) + (parse-command-line args %options (list %default-options) + #:build-options? #f)) (let* ((opts (parse-options)) (args (filter-map (match-lambda -- 2.31.1