summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorDave Beckett <dave@dajobe.org>2005-08-24 22:43:28 +0000
committerDave Beckett <dave@dajobe.org>2005-08-24 22:43:28 +0000
commit39eda01f87cf79b97c375b081be245a30c6b2f8b (patch)
treeb5de39274e2c416577eedfc1cf8465c9b52ab858 /utils
parent7945d3f184b25d9aece917e7344a2953b7d41c9a (diff)
downloadraptor-39eda01f87cf79b97c375b081be245a30c6b2f8b.tar.gz
Add HELP_TEXT_LONG to deal with help that has no short option.
Diffstat (limited to 'utils')
-rw-r--r--utils/rapper.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/utils/rapper.c b/utils/rapper.c
index 1df4b575..823296ee 100644
--- a/utils/rapper.c
+++ b/utils/rapper.c
@@ -138,10 +138,12 @@ print_namespaces(void* user_data, raptor_namespace *nspace)
#ifdef HAVE_GETOPT_LONG
#define HELP_TEXT(short, long, description) " -" short ", --" long " " description
+#define HELP_TEXT_LONG(long, description) " --" long " " description
#define HELP_ARG(short, long) "--" #long
#define HELP_PAD "\n "
#else
#define HELP_TEXT(short, long, description) " -" short " " description
+#define HELP_TEXT_LONG(long, description)
#define HELP_ARG(short, long) "-" #short
#define HELP_PAD "\n "
#endif
@@ -567,7 +569,7 @@ main(int argc, char *argv[])
puts(HELP_TEXT("r", "replace-newlines", "Replace newlines with spaces in literals"));
puts(HELP_TEXT("s", "scan ", "Scan for <rdf:RDF> element in source"));
#ifdef SHOW_NAMESPACES_FLAG
- puts(HELP_TEXT(" ", "show-namespaces ", "Show namespaces as they are declared"));
+ puts(HELP_TEXT_LONG("show-namespaces ", "Show namespaces as they are declared"));
#endif
puts(HELP_TEXT("w", "ignore-warnings ", "Ignore warning messages"));
puts(HELP_TEXT("v", "version ", "Print the Raptor version"));