From d6c25f60406596d84900aa6ac012bf8ce111d57c Mon Sep 17 00:00:00 2001 From: xrs Date: Sat, 22 Jun 2019 22:57:55 +0200 Subject: add flag for exlusive options as program agruments --- src/include/gnunet_getopt_lib.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/include/gnunet_getopt_lib.h') diff --git a/src/include/gnunet_getopt_lib.h b/src/include/gnunet_getopt_lib.h index ddeeffef4..17e36d889 100644 --- a/src/include/gnunet_getopt_lib.h +++ b/src/include/gnunet_getopt_lib.h @@ -135,6 +135,11 @@ struct GNUNET_GETOPT_CommandLineOption */ int option_mandatory; + /** + * Is the option exclusive? + */ + int option_exclusive; + /** * Handler for the option. */ @@ -424,7 +429,7 @@ GNUNET_GETOPT_option_mandatory (struct GNUNET_GETOPT_CommandLineOption opt); * Marker for the end of the list of options. */ #define GNUNET_GETOPT_OPTION_END \ - { '\0', NULL, NULL, NULL, 0, 0, NULL, NULL, NULL } + { '\0', NULL, NULL, NULL, 0, 0, 0, NULL, NULL, NULL } /** -- cgit v1.2.3