[Libguestfs] [PATCH 1/3] mllib: Getopt: point to man page as additional help
Richard W.M. Jones
rjones at redhat.com
Mon Jul 18 11:37:16 UTC 2016
On Mon, Jul 18, 2016 at 01:18:00PM +0200, Pino Toscano wrote:
> On error, point also to the man page of the current tool in addition to
> '$TOOL --help'.
> ---
> mllib/getopt-c.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/mllib/getopt-c.c b/mllib/getopt-c.c
> index bf40f91..3efd5d3 100644
> --- a/mllib/getopt-c.c
> +++ b/mllib/getopt-c.c
> @@ -69,8 +69,8 @@ cleanup_option_list (void *ptr)
> static void __attribute__((noreturn))
> show_error (int status)
> {
> - fprintf (stderr, _("Try `%s --help' for more information.\n"),
> - guestfs_int_program_name);
> + fprintf (stderr, _("Try `%s --help' or consult %s(1) for more information.\n"),
> + guestfs_int_program_name, guestfs_int_program_name);
> exit (status);
> }
ACK.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
libguestfs lets you edit virtual machines. Supports shell scripting,
bindings from many languages. http://libguestfs.org
More information about the Libguestfs
mailing list