qemu-block
[Top][All Lists]
Advanced

[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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]