[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: |
Michael Tokarev |
Subject: |
Re: [PATCH 23/23] qemu-img: inline list of supported commands, remove qemu-img-cmds.h include |
Date: |
Tue, 20 Feb 2024 22:02:32 +0300 |
User-agent: |
Mozilla Thunderbird |
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.
I think if indentation will be larger, it will be easier to read.
Let me experiment a bit..
"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.
We've really big amount of options here, conflicting and illogical
in some cases, which's been added without much thinking. All this
makes me think it will be difficult to automate generation of all
this text for both code and docs..
Thanks!
/mjt
- Re: [PATCH 12/23] qemu-img: make -l (list) the default for "snapshot" subcommand, (continued)
- [PATCH 17/23] qemu-img: refresh options/--help for "amend" command, Michael Tokarev, 2024/02/09
- [PATCH 18/23] qemu-img: refresh options/--help for "bench" command, Michael Tokarev, 2024/02/09
- [PATCH 19/23] qemu-img: refresh options/--help for "bitmap" 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