[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] qemu-img.c: increase spacing between commands i
From: |
Kevin Wolf |
Subject: |
Re: [Qemu-devel] [PATCH] qemu-img.c: increase spacing between commands in documentation |
Date: |
Tue, 14 Aug 2018 10:40:47 +0200 |
User-agent: |
Mutt/1.9.1 (2017-09-22) |
Am 13.08.2018 um 20:19 hat Eric Blake geschrieben:
> On 08/13/2018 11:56 AM, Max Reitz wrote:
> >
> > Ah, hm, so much for that. Hm... I don't quite know what to think of
> > this. It does indeed improve legibility. But the question is whether
> > --help should be as condensed as possible, and if the user finds it hard
> > to read, whether they should not just open the man page...
> >
> > Then again, our --help text already has 102 lines.
> >
> > Let me just think about it for a bit longer. :-)
> > (And see whether others have opinions.)
>
> And I've already expressed my opinion that it is already rather long, where
> making it longer is not necessarily making it smarter.
I think if we want to improve the help text, we should split it up.
$ qemu-img --help
qemu-img version 2.12.94 (v3.0.0-rc4-5-g4fe9c3e13d-dirty)
Copyright (c) 2003-2017 Fabrice Bellard and the QEMU Project developers
usage: qemu-img [standard options] command [command options]
QEMU disk image utility
'-h', '--help' display this help and exit
'-V', '--version' output version information and exit
'-T', '--trace' [[enable=]<pattern>][,events=<file>][,file=<file>]
specify tracing options
Commands:
amend Change options of an existing disk image
bench Run benchmarks on a given disk image
check Check the disk image for consistency or repair it
commit Merge the disk image into its backing file
...
Run 'qemu-img <command> --help' for details.
See <https://qemu.org/contribute/report-a-bug> for how to report bugs.
More information on the QEMU project at <https://qemu.org>.
$ qemu-img check --help
usage: qemu-img check [--object objectdef] [--image-opts] [-q] [-f fmt]
[--output=ofmt] [-r [leaks | all]] [-T src_cache] [-U] filename
Command parameters:
-f 'fmt' is the disk image format. It is guessed automatically
in most cases.
-q use Quiet mode - do not print any output (except errors).
-r tries to repair any inconsistencies that are found during the
check. '-r leaks' repairs only cluster leaks, whereas '-r
all' fixes all kinds of errors, with a higher risk of
choosing the wrong fix or hiding corruption that has already
occurred.
-T 'src_cache' is the cache mode used to read input disk images,
the valid options are the same as for the 'cache' option.
--object 'objectdef' is a QEMU user creatable object definition. See
the qemu(1) manual page for a description of the object
properties. The most common object type is a 'secret', which
is used to supply passwords and/or encryption keys.
--output 'ofmt' is 'human' for human-readable output (default) or
'json' for JSON output.
Examples:
...
Kevin
- Re: [Qemu-devel] [PATCH] qemu-img.c: increase spacing between commands in documentation, Max Reitz, 2018/08/13
- Re: [Qemu-devel] [PATCH] qemu-img.c: increase spacing between commands in documentation, Eric Blake, 2018/08/13
- Re: [Qemu-devel] [PATCH] qemu-img.c: increase spacing between commands in documentation,
Kevin Wolf <=
- Re: [Qemu-devel] [PATCH] qemu-img.c: increase spacing between commands in documentation, Programmingkid, 2018/08/16
- Re: [Qemu-devel] [PATCH] qemu-img.c: increase spacing between commands in documentation, Eric Blake, 2018/08/17
- Re: [Qemu-devel] [PATCH] qemu-img.c: increase spacing between commands in documentation, Programmingkid, 2018/08/17
- Re: [Qemu-devel] [PATCH] qemu-img.c: increase spacing between commands in documentation, Eric Blake, 2018/08/17
- Re: [Qemu-devel] [PATCH] qemu-img.c: increase spacing between commands in documentation, Programmingkid, 2018/08/18