Blob Blame History Raw
From b0caba7a6614f8c756690d66487a5fb4dd8c1572 Mon Sep 17 00:00:00 2001
From: "Richard W.M. Jones" <rjones@redhat.com>
Date: Tue, 19 Jul 2016 12:31:23 +0100
Subject: [PATCH] podcheck: Check tool --help output.

For OCaml tools this does essentially nothing useful because the
--help output is automatically generated from the options, and so
cannot be wrong.  However for C tools this is a useful check.

It would be nice to generate C tools --help output, but there isn't
enough information in the getopt data to do that.

This commit also includes fixes to the --help output for a few tools.

(cherry picked from commit 5e65da07fa3b80413465def0a30a5961d98234a8)
---
 p2v/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/p2v/main.c b/p2v/main.c
index 4441b99..b9a4177 100644
--- a/p2v/main.c
+++ b/p2v/main.c
@@ -82,7 +82,7 @@ usage (int status)
               "Options:\n"
               "  --help                 Display brief help\n"
               " --cmdline=CMDLINE       Used to debug command line parsing\n"
-              " --colours               Use ANSI colour sequences even if not tty\n"
+              " --colors|--colours      Use ANSI colour sequences even if not tty\n"
               " --iso                   Running in the ISO environment\n"
               "  -v|--verbose           Verbose messages\n"
               "  -V|--version           Display version and exit\n"
-- 
1.8.3.1