From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom via Bug reports for GNU Guix Subject: bug#40549: More usability issues: Date: Thu, 23 Apr 2020 21:51:36 +0200 Message-ID: <3827671.e9J7NaK4W3@peach> References: <6171889.DvuYhMxLoT@cherry> Reply-To: Tom Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:47744) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jRhtE-0005hj-EU for bug-guix@gnu.org; Thu, 23 Apr 2020 15:52:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jRhtC-0006u4-UB for bug-guix@gnu.org; Thu, 23 Apr 2020 15:52:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:44318) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jRhtC-0006tx-ID for bug-guix@gnu.org; Thu, 23 Apr 2020 15:52:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1jRhtC-00079A-Fz for bug-guix@gnu.org; Thu, 23 Apr 2020 15:52:02 -0400 In-Reply-To: <6171889.DvuYhMxLoT@cherry> Sender: "Debbugs-submit" Resent-Message-ID: List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane-mx.org@gnu.org Sender: "bug-Guix" To: 40549@debbugs.gnu.org To add detail here: Doing `guix package -d 18 -S 17` actually works. This gives me the impression that the order of arguments is relevant to the processing of them. This sounds like a bad idea because that is quite unlike the normal gnu command line parsers behavior (and generally any command line parsers, unless in very rare cases). The 'package' subcommand should likely always try to do things in-order. First Switch, reject any second Switch argument. Then delete (which can be repeated). Etc. That would be much more predicable and UX friendly. Another, similar, example is: guix package -l --profile=a this doesn't work. But the most curious thing is that this does: guix package --list-installed --profile=a and this too: guix package --profile=a -l and this too; guix package -l --profile=a -l The things that DONT work are confusingly similar to the things that do, and the things don't make sense (having -l twice) work just fine without errors. As said, this is a UX gem to fix. Please take some time to make command line parting usable by humans!