[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
08/12: scripts: repl: Replace 'args-fold*' by 'parse-command-line'.
From: |
guix-commits |
Subject: |
08/12: scripts: repl: Replace 'args-fold*' by 'parse-command-line'. |
Date: |
Thu, 1 Apr 2021 09:20:10 -0400 (EDT) |
civodul pushed a commit to branch master
in repository guix.
commit f1bf6d3dbd913002f51c97c91c34a292ba0ecb5e
Author: zimoun <zimon.toutoune@gmail.com>
AuthorDate: Mon Mar 29 12:18:04 2021 +0200
scripts: repl: Replace 'args-fold*' by 'parse-command-line'.
* guix/scripts/repl.scm (define-command): Replace 'args-fold*' by
'parse-command-line'.
Signed-off-by: Ludovic Courtès <ludo@gnu.org>
---
guix/scripts/repl.scm | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/guix/scripts/repl.scm b/guix/scripts/repl.scm
index 9f20803..50d18c7 100644
--- a/guix/scripts/repl.scm
+++ b/guix/scripts/repl.scm
@@ -1,6 +1,6 @@
;;; GNU Guix --- Functional package management for GNU
;;; Copyright © 2018, 2019, 2020 Ludovic Courtès <ludo@gnu.org>
-;;; Copyright © 2020 Simon Tournier <zimon.toutoune@gmail.com>
+;;; Copyright © 2020, 2021 Simon Tournier <zimon.toutoune@gmail.com>
;;; Copyright © 2020 Konrad Hinsen <konrad.hinsen@fastmail.net>
;;;
;;; This file is part of GNU Guix.
@@ -143,14 +143,13 @@ call THUNK."
(synopsis "read-eval-print loop (REPL) for interactive programming")
(define opts
- (args-fold* args %options
- (lambda (opt name arg result)
- (leave (G_ "~A: unrecognized option~%") name))
+ (parse-command-line args %options (list %default-options)
+ #:build-options? #f
+ #:argument-handler
(lambda (arg result)
(append `((script . ,arg)
(ignore-dot-guile? . #t))
- result))
- %default-options))
+ result))))
(define user-config
(and=> (getenv "HOME")
- branch master updated (9be2066 -> a81a199), guix-commits, 2021/04/01
- 01/12: gnu: psm2: Update to 11.2.185., guix-commits, 2021/04/01
- 05/12: scripts: download: Replace 'args-fold*' by 'parse-command-line'., guix-commits, 2021/04/01
- 03/12: scripts: describe: Replace 'args-fold*' by 'parse-command-line'., guix-commits, 2021/04/01
- 07/12: scripts: publish: Replace 'args-fold*' by 'parse-command-line'., guix-commits, 2021/04/01
- 12/12: build-self: Take care of the spinner in the parent process., guix-commits, 2021/04/01
- 02/12: doc: Fix typo., guix-commits, 2021/04/01
- 04/12: scripts: discover: Replace 'args-fold*' by 'parse-command-line'., guix-commits, 2021/04/01
- 09/12: scripts: search: Replace 'args-fold*' by 'parse-command-line'., guix-commits, 2021/04/01
- 06/12: scripts: edit: Replace 'args-fold*' by 'parse-command-line'., guix-commits, 2021/04/01
- 08/12: scripts: repl: Replace 'args-fold*' by 'parse-command-line'.,
guix-commits <=
- 11/12: build-self: Forward sub-process build output to (current-build-output-port)., guix-commits, 2021/04/01
- 10/12: scripts: show: Replace 'args-fold*' by 'parse-command-line'., guix-commits, 2021/04/01