From mboxrd@z Thu Jan 1 00:00:00 1970 From: swedebugia Subject: bug#34651: guix commands should print a message, if they produce only trivial output by default Date: Fri, 01 Mar 2019 18:29:04 +0100 Message-ID: <98955B3B-8AD5-4C65-B382-73624318B166@riseup.net> References: <20190225172456.242b2df0@alma-ubu> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----ZPFQY1AO5PKPM1QM8546CG2NSV8LSZ" Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([209.51.188.92]:45688) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gzlz2-0002xf-2v for bug-guix@gnu.org; Fri, 01 Mar 2019 12:30:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gzlz1-0000kd-1w for bug-guix@gnu.org; Fri, 01 Mar 2019 12:30:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:43222) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gzlz0-0000jx-UV for bug-guix@gnu.org; Fri, 01 Mar 2019 12:30:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gzlz0-0000fu-Qc for bug-guix@gnu.org; Fri, 01 Mar 2019 12:30:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <20190225172456.242b2df0@alma-ubu> 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, bjoern.hoefling@bjoernhoefling.de ------ZPFQY1AO5PKPM1QM8546CG2NSV8LSZ Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable "Bj=C3=B6rn H=C3=B6fling" skrev: (2= 5 februari 2019 17:24:56 CET) >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=2E 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=2Etar=2Egz >$ tar tzvf >/gnu/store/2ys9fn6h95209piqhyxli5pf2c4mp7zp-tarball-pack=2Etar=2Egz >drwxrwxr-t root/root 0 1970-01-01 01:00 =2E/gnu/store/ >dr-xr-xr-x root/root 0 1970-01-01 01:00 >=2E/gnu/store/w659mjmzwyhv62sd35y2pv5nrg5xkl7j-profile/ >dr-xr-xr-x root/root 0 1970-01-01 01:00 >=2E/gnu/store/w659mjmzwyhv62sd35y2pv5nrg5xkl7j-profile/etc/ >-r--r--r-- root/root 414 1970-01-01 01:00 >=2E/gnu/store/w659mjmzwyhv62sd35y2pv5nrg5xkl7j-profile/etc/profile >-r--r--r-- root/root 37 1970-01-01 01:00 >=2E/gnu/store/w659mjmzwyhv62sd35y2pv5nrg5xkl7j-profile/manifest > >I think from a user perspective it would be better to print a help >message and not build an empty pack=2E > >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=2E > >"guix system" complains it needs a subcommand, which is a different >case=2E > >But then again we have this complaint: > >guix system container >guix system: error: wrong number of arguments for action 'container' > >WDYT? > >Bj=C3=B6rn I think we should print helpful hints or the contents of --help in these s= ituations=2E=20 --=20 Sent from my k-9 mail for Android=2E ------ZPFQY1AO5PKPM1QM8546CG2NSV8LSZ Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
"Bj=C3=B6rn H=C3=B6flin= g" <bjoern=2Ehoefling@bjoernhoefling=2Ede> skrev: (25 februari 2019 1= 7:24:56 CET)
I noticed that if you call "guix COMMAND" for some C=
OMMANDs without any
options given, they produce something which is not v= ery useful to the
user=2E 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=2Etar= =2Egz
$ tar tzvf /gnu/store/2ys9fn6h95209piqhyxli5pf2c4mp7zp-tarball-pac= k=2Etar=2Egz
drwxrwxr-t root/root 0 1970-01-01 01:00 =2E/gnu/sto= re/
dr-xr-xr-x root/root 0 1970-01-01 01:00 =2E/gnu/store/w659mj= mzwyhv62sd35y2pv5nrg5xkl7j-profile/
dr-xr-xr-x root/root 0 1970-= 01-01 01:00 =2E/gnu/store/w659mjmzwyhv62sd35y2pv5nrg5xkl7j-profile/etc/
= -r--r--r-- root/root 414 1970-01-01 01:00 =2E/gnu/store/w659mjmzwyhv6= 2sd35y2pv5nrg5xkl7j-profile/etc/profile
-r--r--r-- root/root 37 1= 970-01-01 01:00 =2E/gnu/store/w659mjmzwyhv62sd35y2pv5nrg5xkl7j-profile/mani= fest

I think from a user perspective it would be better to print a h= elp
message and not build an empty pack=2E

On the other hand, I t= ried out other guix commands and at least it is a
consistent behaviour, = they start with the default values, like "guix
graph" outputs just an em= pty graph=2E

"guix system" complains it needs a subcommand, which is= a different
case=2E

But then again we have this complaint:
guix system container
guix system: error: wrong number of arguments fo= r action 'container'

WDYT?

Bj=C3=B6rn
<= /div>
I think we should print helpful hints or the content= s of --help in these situations=2E
--
Sent from my k-9 mail for And= roid=2E
------ZPFQY1AO5PKPM1QM8546CG2NSV8LSZ--