From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Lepiller Subject: bug#36594: No hint for missing argument Date: Thu, 11 Jul 2019 23:45:19 +0200 Message-ID: <20190711234519.10ba7cfb@sybil.lepiller.eu> References: <87v9w8pan9.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:56176) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hlgtA-0000tC-Nk for bug-guix@gnu.org; Thu, 11 Jul 2019 17:46:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hlgt8-0001TD-LI for bug-guix@gnu.org; Thu, 11 Jul 2019 17:46:04 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58355) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hlgt8-0001T1-I8 for bug-guix@gnu.org; Thu, 11 Jul 2019 17:46:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hlgt8-0002qU-Ec for bug-guix@gnu.org; Thu, 11 Jul 2019 17:46:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <87v9w8pan9.fsf@gnu.org> 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: Ludovic =?UTF-8?Q?Court=C3=A8s?= Cc: 36594@debbugs.gnu.org Le Thu, 11 Jul 2019 22:40:58 +0200, Ludovic Court=C3=A8s a =C3=A9crit : > Julien Lepiller skribis: >=20 > > When you type an option that requires an argument, but don't > > provide one, you get an error message that says there is a missing > > argument. There should brobably be a hint on what values are > > acceptable. For instance, there is no way to know from "guix > > package -v" or "guix package --help" what values are accepted. In > > other cases, there is a --list-something option. > > > > Maybe -v is the only case where it would be useful to do something, > > because you could guess its existence and not use a verbosity > > level. Maybe fixing the help message to say --verbosity=3D[0-5] is > > enough? =20 >=20 > Currently it says: >=20 > --8<---------------cut here---------------start------------->8--- > $ guix build --help | grep -e -verbo > -v, --verbosity=3DLEVEL use the given verbosity LEVEL > --8<---------------cut here---------------end--------------->8--- >=20 > We could add =E2=80=9Can integer between 0 and 2=E2=80=9D, but this was l= eft > non-explicit in case we eventually extend it to -7 to +42. >=20 > Maybe there=E2=80=99s a limit on what we can do to help users? :-) >=20 > Ludo=E2=80=99. If users have no idea what value to use though, they just won't use the feature...