From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id IAj4JTeFjWY2AwEAe85BDQ:P1 (envelope-from ) for ; Tue, 09 Jul 2024 18:45:11 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id IAj4JTeFjWY2AwEAe85BDQ (envelope-from ) for ; Tue, 09 Jul 2024 20:45:11 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=ShLcIM5x; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1720550711; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:resent-cc:resent-from:resent-sender: resent-message-id:in-reply-to:in-reply-to:references:references: list-id:list-help:list-unsubscribe:list-subscribe:list-post: dkim-signature; bh=TsbIXcpyzWSBD8NA7BoqWhS5Jyugw7X8fx25w2dTwX0=; b=H16jVGEmZmIl4TWyk53AGyHXO36yAcJDKD7blJkUAgST1WSetPuzG9zVO3U/F/wJVISsHD xN3eGaYoLMdvhvC7cyT5oFrozWDFxvUnjPEY1wZLkltiMz0wQUD6eKehLWpMSB/CH2Pnat nNeTms18skXgtrncPo7GIwRF1vnmVJlL39xvucT5O1zwUfsn/9s2SQw/FsxHwPVzgQk8Dl Uz5fwqINChhWowOUZrTnkd3Tx3jcmOH86k/NR4YxEyx2sMP/ytPaKVkPnMTNaPpOco4Rhn sMmqg9i11DWXPrAmo0JRf4zBl/EKI61AYsJuLlVq6uMnwWDO9KBt2oeldKNmQA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=ShLcIM5x; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1720550711; a=rsa-sha256; cv=none; b=e9P2iiQtpZfsvTdia7bxnSAwsVOvenjLOjcuv/eLc6fbbEJzyxFkng1FotiYY/p8ed+Q86 pVZnbJcb0QngGBzx6q0DkMb3Di+Mf/cbvJc9U3tF078j70MH4V0HiE6zxvfnBgmdUyhvag 4M6U/rce973ocHvq3jIPrNNMIEc/mTpMTQJ1thox5T1qG4DiqXUTo61Gg0r8hgVMEOQ9Fv xlC7zZJqWCHafF1iyISuD5VicXIPEFLIOItmz0FGwUSambCPP9uCdP19y0PNuWzmk2EUt7 GYzstj8GZ/QzQOIzmRaoy44y82udUVFf4xYDwwpHcwUaXt9WsfrxNmbHFtV9ug== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 6E932131CE for ; Tue, 9 Jul 2024 20:45:11 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sRFpj-0000zj-3c; Tue, 09 Jul 2024 14:44:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sRFpg-0000yB-Ky for bug-guix@gnu.org; Tue, 09 Jul 2024 14:44:56 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sRFpg-0000LS-D8 for bug-guix@gnu.org; Tue, 09 Jul 2024 14:44:56 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sRFpl-0002su-Pl for bug-guix@gnu.org; Tue, 09 Jul 2024 14:45:01 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#71952: documentation inaccuracy? Resent-From: Simon Tournier Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Tue, 09 Jul 2024 18:45:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71952 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: chris , 71952@debbugs.gnu.org Cc: chris@bumblehead.com, jgart , Andrew Tropin Received: via spool by 71952-submit@debbugs.gnu.org id=B71952.172055064811005 (code B ref 71952); Tue, 09 Jul 2024 18:45:01 +0000 Received: (at 71952) by debbugs.gnu.org; 9 Jul 2024 18:44:08 +0000 Received: from localhost ([127.0.0.1]:54059 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sRFou-0002rR-7v for submit@debbugs.gnu.org; Tue, 09 Jul 2024 14:44:08 -0400 Received: from mail-lf1-f52.google.com ([209.85.167.52]:38879) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sRFos-0002qo-Dt for 71952@debbugs.gnu.org; Tue, 09 Jul 2024 14:44:07 -0400 Received: by mail-lf1-f52.google.com with SMTP id 2adb3069b0e04-52ea5185ba7so561892e87.3 for <71952@debbugs.gnu.org>; Tue, 09 Jul 2024 11:44:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1720550575; x=1721155375; darn=debbugs.gnu.org; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=TsbIXcpyzWSBD8NA7BoqWhS5Jyugw7X8fx25w2dTwX0=; b=ShLcIM5xRYyU8dYXN7vuBYIwlYnHXLG7mSmKpt3JyQubp9HQY4u8YN/qvWgLLKknmR dKXc3NyTZJQnU2q9MSWgweF+3UWboSHDMuGmA/5aXi37b/1pekWSSI+iwH7UuCZ2ZpFD XD21WKB26EWUIoF2ELYXd+MlRnt0lLgb1cV2BK3LWRZ7MpkQWorMmWZps0rNSeCi9/51 S15Q5zFXcv5Ptepnfy2VQ30ouz1FAQRwPTMSXzvUQdus6TOIztt1ZnHXsOqwgW3Ua4+D UJDCtb+OaGq75EgNrfAx+1v7n6lBChUBOG8TL1lJ89BLzxMRhhzS7MvtDeKhasQQQBZT 7d/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1720550575; x=1721155375; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=TsbIXcpyzWSBD8NA7BoqWhS5Jyugw7X8fx25w2dTwX0=; b=HH7TiU4b1NHYc6onEUEjjWAYhrtg34gXs5ow6lD8X6qzdjM+gGkFJtqV5Xx3JLP4hA LqtZXFplbx/75To433BFHhOK9f8HKeN92bB5IrES8sNQYFdjOsxOiB4CFFvmXX1dCGz1 0pgwqW4OQscd4/+oG0NwJ1t8kIrtJ45BbY3YbJFAmZgEmfAXdryInVDIHMW5h9ABP1fv 9gQsqdBS9DmoQ8AzCh8FxEPfaJnCXOqlIFcbla3Rl46xC8VxQa/smB4cATlceF3euCbG w6yrCiTDFtzJJd2axSeFp0dyNF7RpdLn9WKtIWvPl8KkM4cI+FwMORv1jwzkijZtLYVP jtiQ== X-Forwarded-Encrypted: i=1; AJvYcCVBkO8DbfkFIYd31lBTfNGiSrKPBleqh2c1MznCjk+1jzrMx3MVQ0bK4BAHLQmjX7YZM7fNawxgNANx/mLgmrv83PppzDI= X-Gm-Message-State: AOJu0YxpVOXK3fM6lZPzmWG9gkAfOuHwvkFH5En4hXVA2VordTyrHqAM BWYXf2znruTBRtAuhtOFi9ZwQ+G4ZEE5gHXRajbDlPW9wFVUVGdi X-Google-Smtp-Source: AGHT+IHIaccmd9txVasFxLqxKC6UagMpCy/bl4lZgfMjOWx3qaMkKyDmkaFAbuLs+s0mRtEpCC9lXQ== X-Received: by 2002:a05:6512:201c:b0:52c:a657:7e85 with SMTP id 2adb3069b0e04-52eb99d58ccmr1562092e87.3.1720550574338; Tue, 09 Jul 2024 11:42:54 -0700 (PDT) Received: from lili (roam-nat-fw-prg-194-254-61-42.net.univ-paris-diderot.fr. [194.254.61.42]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-367cde89108sm3255775f8f.55.2024.07.09.11.42.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jul 2024 11:42:53 -0700 (PDT) From: Simon Tournier In-Reply-To: References: Date: Tue, 09 Jul 2024 19:08:24 +0200 Message-ID: <87ed825w8n.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Queue-Id: 6E932131CE X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -2.80 X-Spam-Score: -2.80 X-TUID: TBzIhj6CtVgh --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 =E2=80=99parse-args=E2=80=99 from =E2=80=99= guix-home=E2=80=99 command inside the module (guix scripts home). Hum, I guess something as the attached patch should fix the issue. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=p.patch Content-Description: patch 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 --=-=-= Content-Type: text/plain WDYT? Cheers, simon --=-=-=--