unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
From: Sarah Morgensen <iskarian@mgsn.dev>
To: 49780@debbugs.gnu.org
Subject: [bug#49780] [PATCH 03/14] import: gem: Use PARSE-COMMAND-LINE for options.
Date: Thu, 29 Jul 2021 20:54:59 -0700	[thread overview]
Message-ID: <88cd802f44b842faf7a87329b01a7860ff38e1e7.1627617006.git.iskarian@mgsn.dev> (raw)
In-Reply-To: <cover.1627617006.git.iskarian@mgsn.dev>

guix/scripts/import/gem.scm (guix-import-gem)[parse-options]: Use
PARSE-COMMAND-LINE instead of ARGS-FOLD*.
---
 guix/scripts/import/gem.scm | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/guix/scripts/import/gem.scm b/guix/scripts/import/gem.scm
index c64596b514..65d2bf10b4 100644
--- a/guix/scripts/import/gem.scm
+++ b/guix/scripts/import/gem.scm
@@ -1,6 +1,7 @@
 ;;; GNU Guix --- Functional package management for GNU
 ;;; Copyright © 2015 David Thompson <davet@gnu.org>
 ;;; Copyright © 2018 Oleg Pykhalov <go.wigust@gmail.com>
+;;; Copyright © 2021 Sarah Morgensen <iskarian@mgsn.dev>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -73,12 +74,8 @@ Import and convert the RubyGems package for PACKAGE-NAME.\n"))
 (define (guix-import-gem . 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





  parent reply	other threads:[~2021-07-30  3:56 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-30  3:51 [bug#49780] [PATCH 00/14] import: Use PARSE-COMMAND-LINE for options Sarah Morgensen
2021-07-30  3:54 ` [bug#49780] [PATCH 01/14] import: go: " Sarah Morgensen
2021-07-30  3:54 ` [bug#49780] [PATCH 02/14] import: egg: " Sarah Morgensen
2021-07-30  3:54 ` Sarah Morgensen [this message]
2021-07-30  3:55 ` [bug#49780] [PATCH 04/14] import: gnu: " Sarah Morgensen
2021-07-30  3:55 ` [bug#49780] [PATCH 05/14] import: cpan: " Sarah Morgensen
2021-07-30  3:55 ` [bug#49780] [PATCH 06/14] import: cran: " Sarah Morgensen
2021-07-30  3:55 ` [bug#49780] [PATCH 07/14] import: elpa: " Sarah Morgensen
2021-07-30  3:55 ` [bug#49780] [PATCH 08/14] import: json: " Sarah Morgensen
2021-07-30  3:55 ` [bug#49780] [PATCH 09/14] import: opam: " Sarah Morgensen
2021-07-30  3:55 ` [bug#49780] [PATCH 10/14] import: pypi: " Sarah Morgensen
2021-07-30  3:55 ` [bug#49780] [PATCH 11/14] import: crate: " Sarah Morgensen
2021-07-30  3:55 ` [bug#49780] [PATCH 12/14] import: texlive: " Sarah Morgensen
2021-07-30  3:55 ` [bug#49780] [PATCH 13/14] import: hackage: " Sarah Morgensen
2021-07-30  3:55 ` [bug#49780] [PATCH 14/14] import: stackage: " Sarah Morgensen
2021-08-03 15:47 ` [bug#49780] [PATCH 00/14] import: " Ludovic Courtès
2021-08-03 18:54   ` Sarah Morgensen
2021-08-31  8:24   ` zimoun
2021-08-03 18:24 ` [bug#49780] [PATCH v2] " Sarah Morgensen
2021-08-04 15:01   ` bug#49780: " Ludovic Courtès

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=88cd802f44b842faf7a87329b01a7860ff38e1e7.1627617006.git.iskarian@mgsn.dev \
    --to=iskarian@mgsn.dev \
    --cc=49780@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).