OSDN Git Service

ivshmem-server: Fix and clean up command line help
authorMarkus Armbruster <armbru@redhat.com>
Tue, 15 Mar 2016 18:34:17 +0000 (19:34 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Fri, 18 Mar 2016 16:34:40 +0000 (17:34 +0100)
commite3ad72965a86b19df5d011117e186c62893085ef
tree639078c0b57df584ae1877f0923e73d7d70c042a
parent3be5cc23245637577210e43e68dd3babd01fbb5e
ivshmem-server: Fix and clean up command line help

Burying error messages in ~20 lines of usage help is bad form.  Print
a single line pointing to -h instead.

Print -h help to stdout rather than stderr.  Fix default of -p.  Clean
up the help text a bit.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-Id: <1458066895-20632-3-git-send-email-armbru@redhat.com>
contrib/ivshmem-server/main.c