[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/14: style: ‘guix style -f’ warns when passed zero arguments.
From: |
guix-commits |
Subject: |
01/14: style: ‘guix style -f’ warns when passed zero arguments. |
Date: |
Wed, 22 Nov 2023 10:52:42 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit c39c89c11eb58b825ab4adbe53165b20b6f1e6f4
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Mon Nov 20 14:50:49 2023 +0100
style: ‘guix style -f’ warns when passed zero arguments.
* guix/scripts/style.scm (guix-style): When OPTS has ‘whole-file?’ set,
warn when FILES is empty.
Change-Id: I494f52ef5d070510d20006e6dd987a6805161bb4
---
guix/scripts/style.scm | 2 ++
1 file changed, 2 insertions(+)
diff --git a/guix/scripts/style.scm b/guix/scripts/style.scm
index 145cd09881..211980dc1c 100644
--- a/guix/scripts/style.scm
+++ b/guix/scripts/style.scm
@@ -625,6 +625,8 @@ Update package definitions to the latest style.\n"))
opts)))
(unless (eq? format-package-definition style)
(warning (G_ "'--styling' option has no effect in whole-file
mode~%")))
+ (when (null? files)
+ (warning (G_ "no files specified, nothing to do~%")))
(for-each format-whole-file files))
(let ((packages (filter-map (match-lambda
(('argument . spec)
- branch master updated (857f501750 -> b150c546b0), guix-commits, 2023/11/22
- 04/14: gnu: tilda: Run guix style on tilda@1.5.4, guix-commits, 2023/11/22
- 03/14: gnu: tilda: Fix lint error by updating input list format for v1.5.4, guix-commits, 2023/11/22
- 01/14: style: ‘guix style -f’ warns when passed zero arguments.,
guix-commits <=
- 02/14: gnu: tilda: Add version 1.6-alpha with D-Bus support, guix-commits, 2023/11/22
- 07/14: gnu: babeltrace: Do not install bindings as egg., guix-commits, 2023/11/22
- 08/14: gnu: Add babeltrace/dev., guix-commits, 2023/11/22
- 10/14: gnu: duplicity: Use ‘search-input-file’., guix-commits, 2023/11/22
- 11/14: gnu: duplicity: Remove input labels and use gexps., guix-commits, 2023/11/22
- 12/14: read-print: Properly indent ‘parameterize’., guix-commits, 2023/11/22
- 09/14: gnu: duplicity: Update to 2.1.4., guix-commits, 2023/11/22
- 05/14: gnu: Add findimagedupes., guix-commits, 2023/11/22
- 06/14: gnu: Add clifm., guix-commits, 2023/11/22
- 13/14: gnu: cuirass: Update to bdc1f9f., guix-commits, 2023/11/22