[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 23/23] qemu-img: inline list of supported commands, remove qe
From: |
Daniel P . Berrangé |
Subject: |
Re: [PATCH 23/23] qemu-img: inline list of supported commands, remove qemu-img-cmds.h include |
Date: |
Tue, 20 Feb 2024 19:06:26 +0000 |
User-agent: |
Mutt/2.2.12 (2023-09-09) |
On Tue, Feb 20, 2024 at 10:02:32PM +0300, Michael Tokarev wrote:
> 20.02.2024 21:48, Daniel P. Berrangé:
> ...
> > $ ./build/qemu-img check --help
> > Check basic image integrity.
> >
> > Usage:
> >
> > qemu-img check [-f FMT | --image-opts] [-T CACHE_MODE] [-r] [-u]
> > [--output human|json] [--object OBJDEF] FILENAME
> >
> > Arguments:
>
> $ ./build/qemu-img check --help
> Check basic image integrity. Usage:
>
> qemu-img check [-f FMT | --image-opts] [-T CACHE_MODE] [-r] [-u]
> [--output human|json] [--object OBJDEF] FILENAME
>
> Arguments:
> ...
>
> Or just:
>
> Check basic image integrity:
>
> qemu-img check...
>
>
> In all cases I tried to make the whole thing as compact as possible,
> to (almost) fit on a standard terminal. The extra empty lines between
> different arguments makes it almost impossible.
IMHO fitting on a "standard" terminal is OK in terms of width, but
should be a non-goal in terms of height. Readability is more important
than avoiding vertical scroll.
> > > "Arguments:\n"
> > > " -h|--help - print this help and exit\n"
>
> btw, the common way is to use comma here, not "|", --
> -h,--help - ...
>
> Again, I especially omitted space after "|" to make it
> more compact. Maybe for no good.
Yes, a comma with a space would look nicer. If we have the
description on the following line, then there's no width
limit problems there.
With regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
- [PATCH 17/23] qemu-img: refresh options/--help for "amend" command, (continued)
- [PATCH 17/23] qemu-img: refresh options/--help for "amend" command, Michael Tokarev, 2024/02/09
- [PATCH 19/23] qemu-img: refresh options/--help for "bitmap" command, Michael Tokarev, 2024/02/09
- [PATCH 18/23] qemu-img: refresh options/--help for "bench" command, Michael Tokarev, 2024/02/09
- [PATCH 20/23] qemu-img: refresh options/--help for "dd" command, Michael Tokarev, 2024/02/09
- [PATCH 21/23] qemu-img: refresh options/--help for "measure" command, Michael Tokarev, 2024/02/09
- [PATCH 22/23] qemu-img: implement short --help, remove global help() function, Michael Tokarev, 2024/02/09
- [PATCH 23/23] qemu-img: inline list of supported commands, remove qemu-img-cmds.h include, Michael Tokarev, 2024/02/09
Re: [PATCH 00/23] qemu-img: refersh options and --help handling, Michael Tokarev, 2024/02/09
Re: [PATCH 00/23] qemu-img: refersh options and --help handling, Daniel P . Berrangé, 2024/02/20