From: Eric Blake <eblake@redhat.com>
To: "Denis V. Lunev" <den@openvz.org>,
qemu-devel@nongnu.org, qemu-block@nongnu.org
Cc: Paolo Bonzini <pbonzini@redhat.com>,
Stefan Hajnoczi <stefanha@redhat.com>,
Kevin Wolf <kwolf@redhat.com>
Subject: Re: [Qemu-devel] [PATCH 5/6] qemu-img: move common options parsing before commands processing
Date: Mon, 13 Jun 2016 13:44:28 -0600 [thread overview]
Message-ID: <575F0D1C.4060909@redhat.com> (raw)
In-Reply-To: <1465837105-11206-6-git-send-email-den@openvz.org>
[-- Attachment #1: Type: text/plain, Size: 1926 bytes --]
On 06/13/2016 10:58 AM, Denis V. Lunev wrote:
> This is necessary to enable creation of common qemu-img options which will
> be specified before command.
>
> The patch also enables '-V' alias to '--version' (exactly like in other
> block utilities) and documents this change.
>
> Signed-off-by: Denis V. Lunev <den@openvz.org>
> CC: Eric Blake <eblake@redhat.com>
> CC: Paolo Bonzini <pbonzini@redhat.com>
> CC: Stefan Hajnoczi <stefanha@redhat.com>
> CC: Kevin Wolf <kwolf@redhat.com>
> ---
> qemu-img.c | 39 ++++++++++++++++++++++++++-------------
> qemu-img.texi | 10 +++++++++-
> 2 files changed, 35 insertions(+), 14 deletions(-)
>
> diff --git a/qemu-img.c b/qemu-img.c
> index 4b56ad3..d22ebdf 100644
> --- a/qemu-img.c
> +++ b/qemu-img.c
> @@ -87,9 +87,12 @@ static void QEMU_NORETURN help(void)
> {
> const char *help_msg =
> QEMU_IMG_VERSION
> - "usage: qemu-img command [command options]\n"
> + "usage: qemu-img [standard options] command [command options]\n"
> "QEMU disk image utility\n"
> "\n"
> + " '-h', '--help' display this help and exit\n"
> + " '-V', '--version' output version information and exit\n"
> + "\n"
> "Command syntax:\n"
> #define DEF(option, callback, arg_string) \
> " " arg_string "\n"
> @@ -3476,7 +3479,7 @@ int main(int argc, char **argv)
> int c;
> static const struct option long_options[] = {
> {"help", no_argument, 0, 'h'},
> - {"version", no_argument, 0, 'v'},
> + {"version", no_argument, 0, 'V'},
I guess it doesn't hurt to change to '-V', since neither '-v' nor '-V'
worked prior to the patch.
Reviewed-by: Eric Blake <eblake@redhat.com>
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]
next prev parent reply other threads:[~2016-06-13 19:44 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-06-13 16:58 [Qemu-devel] [PATCH v4 0/6] trace: enable tracing in qemu-io/qemu-nbd/qemu-img Denis V. Lunev
2016-06-13 16:58 ` [Qemu-devel] [PATCH 1/6] doc: move text describing --trace to specific .texi file Denis V. Lunev
2016-06-13 19:37 ` Eric Blake
2016-06-13 16:58 ` [Qemu-devel] [PATCH 2/6] trace: move qemu_trace_opts to trace/control.c Denis V. Lunev
2016-06-13 16:58 ` [Qemu-devel] [PATCH 3/6] trace: enable tracing in qemu-io Denis V. Lunev
2016-06-13 16:58 ` [Qemu-devel] [PATCH 4/6] trace: enable tracing in qemu-nbd Denis V. Lunev
2016-06-13 19:38 ` Eric Blake
2016-06-13 16:58 ` [Qemu-devel] [PATCH 5/6] qemu-img: move common options parsing before commands processing Denis V. Lunev
2016-06-13 19:44 ` Eric Blake [this message]
2016-06-13 16:58 ` [Qemu-devel] [PATCH 6/6] trace: enable tracing in qemu-img Denis V. Lunev
2016-06-13 19:45 ` Eric Blake
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=575F0D1C.4060909@redhat.com \
--to=eblake@redhat.com \
--cc=den@openvz.org \
--cc=kwolf@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-block@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=stefanha@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).