summaryrefslogtreecommitdiff
path: root/src/include/taler_util.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-04-13 13:49:42 +0200
committerChristian Grothoff <christian@grothoff.org>2015-04-13 13:49:42 +0200
commit2310a3f4747edf100b4c96737426239c893a04a9 (patch)
tree50378498ee7e2f455840bac880411e549bd4b9df /src/include/taler_util.h
parent9e9bad8dad9aacd3028e1baab76de36c8a5dbdc7 (diff)
downloadexchange-2310a3f4747edf100b4c96737426239c893a04a9.tar.gz
exchange-2310a3f4747edf100b4c96737426239c893a04a9.tar.bz2
exchange-2310a3f4747edf100b4c96737426239c893a04a9.zip
fixing -h and -v command line tool options
Diffstat (limited to 'src/include/taler_util.h')
-rw-r--r--src/include/taler_util.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/include/taler_util.h b/src/include/taler_util.h
index 7bba573d1..cad899685 100644
--- a/src/include/taler_util.h
+++ b/src/include/taler_util.h
@@ -111,4 +111,28 @@ char *
TALER_os_installation_get_path (enum GNUNET_OS_InstallationPathKind dirkind);
+/**
+ * Print out details on command line options (implements --help).
+ *
+ * @param ctx command line processing context
+ * @param scls additional closure (points to about text)
+ * @param option name of the option
+ * @param value not used (NULL)
+ * @return #GNUNET_NO (do not continue, not an error)
+ */
+int
+TALER_GETOPT_format_help_ (struct GNUNET_GETOPT_CommandLineProcessorContext *ctx,
+ void *scls,
+ const char *option,
+ const char *value);
+
+/**
+ * Macro defining the option to print the command line
+ * help text (-h option).
+ *
+ * @param about string with brief description of the application
+ */
+#define TALER_GETOPT_OPTION_HELP(about) \
+ { 'h', "help", (const char *) NULL, gettext_noop("print this help"), 0, &TALER_GETOPT_format_help_, (void *) about }
+
#endif