From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?Bj=C3=B6rn_?= =?UTF-8?Q?H=C3=B6fling?= Subject: bug#34651: guix commands should print a message, if they produce only trivial output by default Date: Mon, 25 Feb 2019 17:24:56 +0100 Message-ID: <20190225172456.242b2df0@alma-ubu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; boundary="Sig_/LW8ZW8Iyb4uZWGsZ0sTcehq"; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:56899) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gyJ50-0003PD-S9 for bug-guix@gnu.org; Mon, 25 Feb 2019 11:26:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gyJ4w-0004AF-V4 for bug-guix@gnu.org; Mon, 25 Feb 2019 11:26:10 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:38143) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gyJ4s-00045c-0V for bug-guix@gnu.org; Mon, 25 Feb 2019 11:26:04 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gyJ4r-0006Xb-OR for bug-guix@gnu.org; Mon, 25 Feb 2019 11:26:01 -0500 Sender: "Debbugs-submit" Resent-Message-ID: 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 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) 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.org@gnu.org Sender: "bug-Guix" To: 34651@debbugs.gnu.org --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--