GNU bug report logs - #71952
documentation inaccuracy?

Previous Next

Package: guix;

Reported by: chris <chris <at> bumblehead.com>

Date: Fri, 5 Jul 2024 18:24:01 UTC

Severity: normal

Full log


View this message in rfc822 format

From: Simon Tournier <zimon.toutoune <at> gmail.com>
To: chris <chris <at> bumblehead.com>, 71952 <at> debbugs.gnu.org
Cc: chris <at> bumblehead.com, jgart <jgart <at> dismail.de>, Andrew Tropin <andrew <at> trop.in>
Subject: bug#71952: documentation inaccuracy?
Date: Tue, 09 Jul 2024 19:08:24 +0200
[Message part 1 (text/plain, inline)]
Hi,

>> $ guix home switch-generation -- -1
>> guix home: error: -1: extraneous command

Indeed, the command-line parser seems incorrect and inconsistent with
the documentation.

The culprit seems the procedure ’parse-args’ from ’guix-home’ command
inside the module (guix scripts home).

Hum, I guess something as the attached patch should fix the issue.

[p.patch (text/x-diff, inline)]
diff --git a/guix/scripts/home.scm b/guix/scripts/home.scm
index b4c82d275f..5c39e83983 100644
--- a/guix/scripts/home.scm
+++ b/guix/scripts/home.scm
@@ -682,6 +682,8 @@ (define-command (guix-home . args)
       (match rest
         (() opts)
         (("--") opts)
+        (("--" n)
+         (alist-cons 'argument n opts))
         (("--" command ...)
          (match (assoc-ref opts 'action)
            ('container
[Message part 3 (text/plain, inline)]
WDYT?

Cheers,
simon

This bug report was last modified 1 year and 12 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.