* Help output inconsistency: -v vs. -V
@ 2015-06-29 17:50 Andrei Borzenkov
2015-06-30 7:57 ` John Lane
0 siblings, 1 reply; 4+ messages in thread
From: Andrei Borzenkov @ 2015-06-29 17:50 UTC (permalink / raw)
To: grub-devel
We currently have situation that C converted tools use -V for
--version and -v for --verbose while shell based tools (quite a lot
left) use -v for --version and most do not have --verbose at all.
-V is quite deep in argp, but of course it is possible to get rid of it
by basically replicating argp code in grub (OK, we do not need check
for any hooks as we know there are none).
It's not really new, and had been this way for some time, just that in
the past C programs were considered "for internal use only" and now
they are user facing so it is incompatible change.
Just gathering opinions what would be preferable.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Help output inconsistency: -v vs. -V
2015-06-29 17:50 Help output inconsistency: -v vs. -V Andrei Borzenkov
@ 2015-06-30 7:57 ` John Lane
2015-06-30 9:13 ` Thomas Schmitt
0 siblings, 1 reply; 4+ messages in thread
From: John Lane @ 2015-06-30 7:57 UTC (permalink / raw)
To: grub-devel
My natural inclination is to reach for "-v" when I want verbose output
from something and fall back to --verbose if that doesn't work. I
usually go straight for --version when wanting that info. So, "-V
for--version and -v for --verbose" works for me.
On 29/06/15 18:50, Andrei Borzenkov wrote:
> We currently have situation that C converted tools use -V for
> --version and -v for --verbose while shell based tools (quite a lot
> left) use -v for --version and most do not have --verbose at all.
>
> -V is quite deep in argp, but of course it is possible to get rid of it
> by basically replicating argp code in grub (OK, we do not need check
> for any hooks as we know there are none).
>
> It's not really new, and had been this way for some time, just that in
> the past C programs were considered "for internal use only" and now
> they are user facing so it is incompatible change.
>
> Just gathering opinions what would be preferable.
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Help output inconsistency: -v vs. -V
2015-06-30 7:57 ` John Lane
@ 2015-06-30 9:13 ` Thomas Schmitt
2015-06-30 17:04 ` Ben Hildred
0 siblings, 1 reply; 4+ messages in thread
From: Thomas Schmitt @ 2015-06-30 9:13 UTC (permalink / raw)
To: grub-devel
Hi,
John Lane wrote:
> My natural inclination is to reach for "-v" when I want verbose output
Same for me. -v for version seems odd.
(I am spoiled by archivers and data transfer programs.)
But since it is the old CLI, one would have to declare that
one obsolete and start a new rectified one.
> So, "-V for --version and -v for --verbose" works for me.
Since grub-mkrescue stays with automatic distinction of
own options and xorrisofs options, one would have to mention
in its docs that one has to use xorrisofs option "-volid"
rather than xorrisofs option "-V".
I personally would drop "-V" as grub-mkrescue option. It
collides with the traditional option set of mkisofs, which is
in use by many scripts for bootable ISOs.
Consuming it by grub-mkrescue would hamper the migration
from such scripts to grub-mkrescue.
Well, "--version" collides with the mkisofs-ish option set,
too. But i cannot think of a use case which needs to print
the version information in the course of ISO production.
Have a nice day :)
Thomas
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Help output inconsistency: -v vs. -V
2015-06-30 9:13 ` Thomas Schmitt
@ 2015-06-30 17:04 ` Ben Hildred
0 siblings, 0 replies; 4+ messages in thread
From: Ben Hildred @ 2015-06-30 17:04 UTC (permalink / raw)
To: The development of GNU GRUB
[-- Attachment #1: Type: text/plain, Size: 2111 bytes --]
On Tue, Jun 30, 2015 at 3:13 AM, Thomas Schmitt <scdbackup@gmx.net> wrote:
>
> > So, "-V for --version and -v for --verbose" works for me.
>
Have another endorsement from me, no charge.
> <snip>
> I personally would drop "-V" as grub-mkrescue option. It
> collides with the traditional option set of mkisofs, which is
> in use by many scripts for bootable ISOs.
> Consuming it by grub-mkrescue would hamper the migration
> from such scripts to grub-mkrescue.
>
Seconded.
>
> Well, "--version" collides with the mkisofs-ish option set,
> too. But i cannot think of a use case which needs to print
> the version information in the course of ISO production.
>
> the one time when using grub-mkrescue where you would want to pass the
--version to the underlying tools is when you are using --version anyway.
How about when you run grub-mkrescue --version, it also calls the tools
with --version so you get something like :
grub-mkrescue (GRUB) 2.02~beta2-23 using /usr/bin/xorriso:
xorriso 1.3.2 : RockRidge filesystem manipulator, libburnia project.
mkisofs 2.01-Emulation Copyright (C) 2013 see libburnia-project.org xorriso
xorriso 1.3.2
ISO 9660 Rock Ridge filesystem manipulator and CD/DVD/BD burn program
Copyright (C) 2013, Thomas Schmitt <scdbackup@gmx.net>, libburnia project.
xorriso version : 1.3.2
Version timestamp : 2013.08.07.110001
Build timestamp : -none-given-
libisofs in use : 1.3.2 (min. 1.3.2)
libjte in use : 1.0.0 (min. 1.0.0)
libburn in use : 1.3.2 (min. 1.3.2)
libburn OS adapter: internal GNU/Linux SG_IO adapter sg-linux
libisoburn in use : 1.3.2 (min. 1.3.2)
Provided under GNU GPL version 2 or later.
There is NO WARRANTY, to the extent permitted by law.
This would make debugging easier in some cases. Also notice I included the
path to the executable being used, which also helps with path issues.
>
> Have a nice day :)
>
> Thomas
>
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel
>
--
--
Ben Hildred
Automation Support Services
303 815 6721
[-- Attachment #2: Type: text/html, Size: 3808 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-06-30 17:04 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-29 17:50 Help output inconsistency: -v vs. -V Andrei Borzenkov
2015-06-30 7:57 ` John Lane
2015-06-30 9:13 ` Thomas Schmitt
2015-06-30 17:04 ` Ben Hildred
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.