From debbugs-submit-bounces@debbugs.gnu.org Mon Feb 25 11:25:29 2019 Received: (at submit) by debbugs.gnu.org; 25 Feb 2019 16:25:29 +0000 Received: from localhost ([127.0.0.1]:51687 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gyJ4L-0006Wp-8F for submit@debbugs.gnu.org; Mon, 25 Feb 2019 11:25:29 -0500 Received: from eggs.gnu.org ([209.51.188.92]:42255) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gyJ4J-0006Wd-Aa for submit@debbugs.gnu.org; Mon, 25 Feb 2019 11:25:27 -0500 Received: from lists.gnu.org ([209.51.188.17]:45858) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gyJ44-0003QE-Bd for submit@debbugs.gnu.org; Mon, 25 Feb 2019 11:25:16 -0500 Received: from eggs.gnu.org ([209.51.188.92]:56600) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gyJ43-0002TJ-E9 for bug-guix@gnu.org; Mon, 25 Feb 2019 11:25:12 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=1.0 required=5.0 tests=BAYES_40,FROM_EXCESS_BASE64 autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gyJ3y-0003My-AT for bug-guix@gnu.org; Mon, 25 Feb 2019 11:25:07 -0500 Received: from m4s11.vlinux.de ([83.151.27.109]:60972 helo=bjoernhoefling.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gyJ3x-0003HI-Pn for bug-guix@gnu.org; Mon, 25 Feb 2019 11:25:06 -0500 Received: from alma-ubu (pD951FB17.dip0.t-ipconnect.de [217.81.251.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by bjoernhoefling.de (Postfix) with ESMTPSA id D0AD53F9BD for ; Mon, 25 Feb 2019 17:24:56 +0100 (CET) Date: Mon, 25 Feb 2019 17:24:56 +0100 From: =?UTF-8?B?QmrDtnJuIEjDtmZsaW5n?= To: Subject: guix commands should print a message, if they produce only trivial output by default Message-ID: <20190225172456.242b2df0@alma-ubu> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/LW8ZW8Iyb4uZWGsZ0sTcehq"; protocol="application/pgp-signature" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 83.151.27.109 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: 0.1 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.9 (/) --Sig_/LW8ZW8Iyb4uZWGsZ0sTcehq Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I noticed that if you call "guix COMMAND" for some COMMANDs without any options given, they produce something which is not very useful to the user. I first noticed it with guix pack: When "guix pack" is run without any options, it builds an empty pack: $ guix pack /gnu/store/2ys9fn6h95209piqhyxli5pf2c4mp7zp-tarball-pack.tar.gz $ tar tzvf /gnu/store/2ys9fn6h95209piqhyxli5pf2c4mp7zp-tarball-pack.tar.gz drwxrwxr-t root/root 0 1970-01-01 01:00 ./gnu/store/ dr-xr-xr-x root/root 0 1970-01-01 01:00 ./gnu/store/w659mjmzwyhv62s= d35y2pv5nrg5xkl7j-profile/ dr-xr-xr-x root/root 0 1970-01-01 01:00 ./gnu/store/w659mjmzwyhv62s= d35y2pv5nrg5xkl7j-profile/etc/ -r--r--r-- root/root 414 1970-01-01 01:00 ./gnu/store/w659mjmzwyhv62s= d35y2pv5nrg5xkl7j-profile/etc/profile -r--r--r-- root/root 37 1970-01-01 01:00 ./gnu/store/w659mjmzwyhv62s= d35y2pv5nrg5xkl7j-profile/manifest I think from a user perspective it would be better to print a help message and not build an empty pack. On the other hand, I tried out other guix commands and at least it is a consistent behaviour, they start with the default values, like "guix graph" outputs just an empty graph. "guix system" complains it needs a subcommand, which is a different case. But then again we have this complaint: guix system container guix system: error: wrong number of arguments for action 'container' WDYT? Bj=C3=B6rn --Sig_/LW8ZW8Iyb4uZWGsZ0sTcehq Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQQiGUP0np8nb5SZM4K/KGy2WT5f/QUCXHQW2AAKCRC/KGy2WT5f /WmEAJwIIET9q/sUZ5MKQCb3aOg/arCFagCdEaILYWTvBC8v1rN+r8J0C+JqSSU= =Hvlu -----END PGP SIGNATURE----- --Sig_/LW8ZW8Iyb4uZWGsZ0sTcehq--