From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ludovic =?UTF-8?Q?Court=C3=A8s?= Subject: bug#36594: No hint for missing argument Date: Thu, 11 Jul 2019 22:40:58 +0200 Message-ID: <87v9w8pan9.fsf@gnu.org> References: 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]:37728) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hlftC-0003Gq-UD for bug-guix@gnu.org; Thu, 11 Jul 2019 16:42:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hlftB-0001Xw-Vx for bug-guix@gnu.org; Thu, 11 Jul 2019 16:42:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58253) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hlftB-0001Xh-QN for bug-guix@gnu.org; Thu, 11 Jul 2019 16:42:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hlftB-0007R0-M7 for bug-guix@gnu.org; Thu, 11 Jul 2019 16:42:01 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: (Julien Lepiller's message of "Thu, 11 Jul 2019 11:49:45 +0200") 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: Julien Lepiller Cc: 36594@debbugs.gnu.org Julien Lepiller skribis: > 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 shou= ld 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, becau= se you could guess its existence and not use a verbosity level. Maybe fixin= g the help message to say --verbosity=3D[0-5] is enough? Currently it says: --8<---------------cut here---------------start------------->8--- $ guix build --help | grep -e -verbo -v, --verbosity=3DLEVEL use the given verbosity LEVEL --8<---------------cut here---------------end--------------->8--- We could add =E2=80=9Can integer between 0 and 2=E2=80=9D, but this was left non-explicit in case we eventually extend it to -7 to +42. Maybe there=E2=80=99s a limit on what we can do to help users? :-) Ludo=E2=80=99.