Subject: Re: bug#74500: pack: add ‘--file=FILE’ with the same meaning as for guix build
From: Ludovic Courtès <[email-masked]>
To: "Dr. Arne Babenhauserheide" <[email-masked]>
Cc: [email-masked]
Date: Mon, 02 Dec 2024 11:59:37 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi,

"Dr. Arne Babenhauserheide" <[email-masked]> skribis:

> From a1956bea3a33fed9a01246c9e5e394a7dd9daf6c Mon Sep 17 00:00:00 2001
> Message-ID: <[email-masked]>
> From: Arne Babenhauserheide <[email-masked]>
> Date: Sun, 24 Nov 2024 00:32:36 +0100
> Subject: [PATCH] =?UTF-8?q?pack:=20add=20=E2=80=98--file=3DFILE=E2=80=99?=
>  =?UTF-8?q?=20with=20the=20same=20meaning=20as=20for=20guix=20build?=
> MIME-Version: 1.0
> Content-Type: text/plain; charset=UTF-8
> Content-Transfer-Encoding: 8bit
>
> * guix/scripts/pack.scm (%options): add --file=FILE, but no
>   shorthand (that’s already taken for format).
> * doc/guix.texi (Invoking guix pack): document --file
>
> Change-Id: I87797fccdf218ead3b7f471a84034e8a8d566245

Applied with this minor change:

diff --git a/doc/guix.texi b/doc/guix.texi
index 0d461fb96a..594d152de6 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -7277,7 +7277,8 @@ Invoking guix pack
 @command{guix build}}).
 
 @item --file=@var{file}
-build a pack the code within @var{file} evaluates to.
+Build a pack containing the package or other object the code within
+@var{file} evaluates to.
 
 This has the same purpose as the same-named option in @command{guix
 build} (@pxref{Additional Build Options, @option{--file} in

Thanks!

Ludo’.