[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#71952: documentation inaccuracy?
From: |
Simon Tournier |
Subject: |
bug#71952: documentation inaccuracy? |
Date: |
Tue, 09 Jul 2024 19:08:24 +0200 |
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.
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
WDYT?
Cheers,
simon