summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2015-12-27 11:53:31 +0100
committerDavid Tardon <dtardon@redhat.com>2015-12-27 11:55:11 +0100
commit77b46b33b384a27f469938bdcf6299e264175ddf (patch)
treee5228d21a5e1ca9c4aba370878df822e16ebd543
parentf694293ad44226e31cb549f6418907c78e8d117f (diff)
make --help output more help2man-friendly
Change-Id: Ie1ba56de27536f6ae8a529559cdf4c3de8140b9d
-rw-r--r--src/conv/html/abw2html.cpp10
-rw-r--r--src/conv/raw/abw2raw.cpp15
-rw-r--r--src/conv/text/abw2text.cpp12
3 files changed, 26 insertions, 11 deletions
diff --git a/src/conv/html/abw2html.cpp b/src/conv/html/abw2html.cpp
index 75eef0e..457e795 100644
--- a/src/conv/html/abw2html.cpp
+++ b/src/conv/html/abw2html.cpp
@@ -26,11 +26,15 @@ namespace
int printUsage()
{
- printf("Usage: abw2html [OPTION] <AbiWord Document>\n");
+ printf("`abw2html' converts AbiWord documents to HTML.\n");
+ printf("\n");
+ printf("Usage: abw2html [OPTION] INPUT\n");
printf("\n");
printf("Options:\n");
- printf("--help Shows this help message\n");
- printf("--version Output abw2html version \n");
+ printf("\t--help show this help message\n");
+ printf("\t--version show version information\n");
+ printf("\n");
+ printf("Report bugs to <https://bugs.documentfoundation.org/>.\n");
return -1;
}
diff --git a/src/conv/raw/abw2raw.cpp b/src/conv/raw/abw2raw.cpp
index 0c5ebb2..3d71bd2 100644
--- a/src/conv/raw/abw2raw.cpp
+++ b/src/conv/raw/abw2raw.cpp
@@ -17,6 +17,9 @@
#include "config.h"
#endif
+#ifndef PACKAGE
+#define PACKAGE "libabw"
+#endif
#ifndef VERSION
#define VERSION "UNKNOWN VERSION"
#endif
@@ -26,12 +29,16 @@ namespace
int printUsage()
{
- printf("Usage: abw2raw [OPTION] <AbiWord Document>\n");
+ printf("`abw2raw' is used to test " PACKAGE ".\n");
+ printf("\n");
+ printf("Usage: abw2raw [OPTION] INPUT\n");
printf("\n");
printf("Options:\n");
- printf("--callgraph Display the call graph nesting level\n");
- printf("--help Shows this help message\n");
- printf("--version Output abw2raw version \n");
+ printf("\t--callgraph display the call graph nesting level\n");
+ printf("\t--help show this help message\n");
+ printf("\t--version show version information\n");
+ printf("\n");
+ printf("Report bugs to <https://bugs.documentfoundation.org/>.\n");
return -1;
}
diff --git a/src/conv/text/abw2text.cpp b/src/conv/text/abw2text.cpp
index 590045c..aed75dc 100644
--- a/src/conv/text/abw2text.cpp
+++ b/src/conv/text/abw2text.cpp
@@ -27,12 +27,16 @@ namespace
int printUsage()
{
- printf("Usage: abw2text [OPTION] <AbiWord Document>\n");
+ printf("`abw2text' converts AbiWord documents to plain text.\n");
+ printf("\n");
+ printf("Usage: abw2text [OPTION] INPUT\n");
printf("\n");
printf("Options:\n");
- printf("--info Display document metadata instead of the text\n");
- printf("--help Shows this help message\n");
- printf("--version Output abw2text version\n");
+ printf("\t--info display document metadata instead of the text\n");
+ printf("\t--help show this help message\n");
+ printf("\t--version show version information\n");
+ printf("\n");
+ printf("Report bugs to <https://bugs.documentfoundation.org/>.\n");
return -1;
}