mrc0mmand / rpms / libguestfs

Forked from rpms/libguestfs 3 years ago
Clone

Blame SOURCES/0162-podcheck-Check-tool-help-output.patch

e76f14
From b0caba7a6614f8c756690d66487a5fb4dd8c1572 Mon Sep 17 00:00:00 2001
e76f14
From: "Richard W.M. Jones" <rjones@redhat.com>
e76f14
Date: Tue, 19 Jul 2016 12:31:23 +0100
e76f14
Subject: [PATCH] podcheck: Check tool --help output.
e76f14
e76f14
For OCaml tools this does essentially nothing useful because the
e76f14
--help output is automatically generated from the options, and so
e76f14
cannot be wrong.  However for C tools this is a useful check.
e76f14
e76f14
It would be nice to generate C tools --help output, but there isn't
e76f14
enough information in the getopt data to do that.
e76f14
e76f14
This commit also includes fixes to the --help output for a few tools.
e76f14
e76f14
(cherry picked from commit 5e65da07fa3b80413465def0a30a5961d98234a8)
e76f14
---
e76f14
 p2v/main.c | 2 +-
e76f14
 1 file changed, 1 insertion(+), 1 deletion(-)
e76f14
e76f14
diff --git a/p2v/main.c b/p2v/main.c
e76f14
index 4441b99..b9a4177 100644
e76f14
--- a/p2v/main.c
e76f14
+++ b/p2v/main.c
e76f14
@@ -82,7 +82,7 @@ usage (int status)
e76f14
               "Options:\n"
e76f14
               "  --help                 Display brief help\n"
e76f14
               " --cmdline=CMDLINE       Used to debug command line parsing\n"
e76f14
-              " --colours               Use ANSI colour sequences even if not tty\n"
e76f14
+              " --colors|--colours      Use ANSI colour sequences even if not tty\n"
e76f14
               " --iso                   Running in the ISO environment\n"
e76f14
               "  -v|--verbose           Verbose messages\n"
e76f14
               "  -V|--version           Display version and exit\n"
e76f14
-- 
7af31e
1.8.3.1
e76f14