From: Markus Armbruster <armbru@redhat.com>
To: "Marc-André Lureau" <marcandre.lureau@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 4/4] qmp-shell: improve help
Date: Thu, 04 May 2017 16:48:07 +0200 [thread overview]
Message-ID: <87h910adaw.fsf@dusky.pond.sub.org> (raw)
In-Reply-To: <20170504125432.21653-5-marcandre.lureau@redhat.com> ("Marc-André Lureau"'s message of "Thu, 4 May 2017 16:54:32 +0400")
Marc-André Lureau <marcandre.lureau@redhat.com> writes:
> Describe the arguments & fix the tool name.
>
> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
> ---
> scripts/qmp/qmp-shell | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/scripts/qmp/qmp-shell b/scripts/qmp/qmp-shell
> index db24c87cdd..fce1ab6c49 100755
> --- a/scripts/qmp/qmp-shell
> +++ b/scripts/qmp/qmp-shell
> @@ -375,7 +375,11 @@ def die(msg):
> def fail_cmdline(option=None):
> if option:
> sys.stderr.write('ERROR: bad command-line option \'%s\'\n' % option)
> - sys.stderr.write('qemu-shell [ -v ] [ -p ] [ -H ] [ -N ] < UNIX socket path> | < TCP address:port >\n')
> + sys.stderr.write('qmp-shell [ -v ] [ -p ] [ -H ] [ -N ] < UNIX socket path> | < TCP address:port >\n')
> + sys.stderr.write(' -v Verbose (echo command sent and received)\n')
> + sys.stderr.write(' -p Pretty-print JSON\n')
> + sys.stderr.write(' -H Use HMP interface\n')
> + sys.stderr.write(' -N Skip negotiate (for qemu-ga)\n')
> sys.exit(1)
>
> def main():
Given Python modules like argparse, doing option parsing by hand is
basically stupid. I'll take this patch anyway, because it improves help
without making the program appreciably stupider.
next prev parent reply other threads:[~2017-05-04 14:48 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-04 12:54 [Qemu-devel] [PATCH 0/4] qmp-shell: learn to connect to qemu-ga Marc-André Lureau
2017-05-04 12:54 ` [Qemu-devel] [PATCH 1/4] qmp-shell: add -N option to skip negotiate Marc-André Lureau
2017-05-04 13:34 ` Eric Blake
2017-05-04 12:54 ` [Qemu-devel] [PATCH 2/4] qmp-shell: ignore query-commands error Marc-André Lureau
2017-05-04 13:50 ` Eric Blake
2017-05-04 14:44 ` Markus Armbruster
2017-05-04 14:44 ` Marc-André Lureau
2017-05-04 12:54 ` [Qemu-devel] [PATCH 3/4] qmp-shell: don't show version greeting if unavailable Marc-André Lureau
2017-05-04 13:50 ` Eric Blake
2017-05-04 12:54 ` [Qemu-devel] [PATCH 4/4] qmp-shell: improve help Marc-André Lureau
2017-05-04 13:51 ` Eric Blake
2017-05-04 14:48 ` Markus Armbruster [this message]
2017-05-04 15:22 ` [Qemu-devel] [PATCH 0/4] qmp-shell: learn to connect to qemu-ga Markus Armbruster
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=87h910adaw.fsf@dusky.pond.sub.org \
--to=armbru@redhat.com \
--cc=marcandre.lureau@redhat.com \
--cc=qemu-devel@nongnu.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.