* bug#36594: No hint for missing argument
@ 2019-07-11 9:49 Julien Lepiller
2019-07-11 20:40 ` Ludovic Courtès
0 siblings, 1 reply; 4+ messages in thread
From: Julien Lepiller @ 2019-07-11 9:49 UTC (permalink / raw)
To: 36594
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=[0-5] is enough?
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#36594: No hint for missing argument
2019-07-11 9:49 bug#36594: No hint for missing argument Julien Lepiller
@ 2019-07-11 20:40 ` Ludovic Courtès
2019-07-11 21:45 ` Julien Lepiller
0 siblings, 1 reply; 4+ messages in thread
From: Ludovic Courtès @ 2019-07-11 20:40 UTC (permalink / raw)
To: Julien Lepiller; +Cc: 36594
Julien Lepiller <julien@lepiller.eu> 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 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=[0-5] is enough?
Currently it says:
--8<---------------cut here---------------start------------->8---
$ guix build --help | grep -e -verbo
-v, --verbosity=LEVEL use the given verbosity LEVEL
--8<---------------cut here---------------end--------------->8---
We could add “an integer between 0 and 2”, but this was left
non-explicit in case we eventually extend it to -7 to +42.
Maybe there’s a limit on what we can do to help users? :-)
Ludo’.
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#36594: No hint for missing argument
2019-07-11 20:40 ` Ludovic Courtès
@ 2019-07-11 21:45 ` Julien Lepiller
2019-07-12 20:41 ` Ludovic Courtès
0 siblings, 1 reply; 4+ messages in thread
From: Julien Lepiller @ 2019-07-11 21:45 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: 36594
Le Thu, 11 Jul 2019 22:40:58 +0200,
Ludovic Courtès <ludo@gnu.org> a écrit :
> Julien Lepiller <julien@lepiller.eu> 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 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=[0-5] is
> > enough?
>
> Currently it says:
>
> --8<---------------cut here---------------start------------->8---
> $ guix build --help | grep -e -verbo
> -v, --verbosity=LEVEL use the given verbosity LEVEL
> --8<---------------cut here---------------end--------------->8---
>
> We could add “an integer between 0 and 2”, but this was left
> non-explicit in case we eventually extend it to -7 to +42.
>
> Maybe there’s a limit on what we can do to help users? :-)
>
> Ludo’.
If users have no idea what value to use though, they just won't use the
feature...
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#36594: No hint for missing argument
2019-07-11 21:45 ` Julien Lepiller
@ 2019-07-12 20:41 ` Ludovic Courtès
0 siblings, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2019-07-12 20:41 UTC (permalink / raw)
To: Julien Lepiller; +Cc: 36594
Julien Lepiller <julien@lepiller.eu> skribis:
> Le Thu, 11 Jul 2019 22:40:58 +0200,
> Ludovic Courtès <ludo@gnu.org> a écrit :
[...]
>> Currently it says:
>>
>> --8<---------------cut here---------------start------------->8---
>> $ guix build --help | grep -e -verbo
>> -v, --verbosity=LEVEL use the given verbosity LEVEL
>> --8<---------------cut here---------------end--------------->8---
>>
>> We could add “an integer between 0 and 2”, but this was left
>> non-explicit in case we eventually extend it to -7 to +42.
>>
>> Maybe there’s a limit on what we can do to help users? :-)
>>
>> Ludo’.
>
> If users have no idea what value to use though, they just won't use the
> feature...
What about:
use the given verbosity LEVEL, an integer
?
If that’s fine with you, please push!
Thanks,
Ludo’.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2019-07-12 20:42 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-07-11 9:49 bug#36594: No hint for missing argument Julien Lepiller
2019-07-11 20:40 ` Ludovic Courtès
2019-07-11 21:45 ` Julien Lepiller
2019-07-12 20:41 ` Ludovic Courtès
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.