diff options
author | xrs <xrs@mail36.net> | 2019-06-22 22:57:55 +0200 |
---|---|---|
committer | xrs <xrs@mail36.net> | 2019-06-22 22:57:55 +0200 |
commit | d6c25f60406596d84900aa6ac012bf8ce111d57c (patch) | |
tree | 7418c56cf25b7e0fc4e84c714f76deddf15f75f6 /src/include | |
parent | 93c332be89c4c65f10b7c4c49b6ed15d91b91884 (diff) | |
download | gnunet-d6c25f60406596d84900aa6ac012bf8ce111d57c.tar.gz gnunet-d6c25f60406596d84900aa6ac012bf8ce111d57c.zip |
add flag for exlusive options as program agruments
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_getopt_lib.h | 7 |
1 files changed, 6 insertions, 1 deletions
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 | |||
@@ -136,6 +136,11 @@ struct GNUNET_GETOPT_CommandLineOption | |||
136 | int option_mandatory; | 136 | int option_mandatory; |
137 | 137 | ||
138 | /** | 138 | /** |
139 | * Is the option exclusive? | ||
140 | */ | ||
141 | int option_exclusive; | ||
142 | |||
143 | /** | ||
139 | * Handler for the option. | 144 | * Handler for the option. |
140 | */ | 145 | */ |
141 | GNUNET_GETOPT_CommandLineOptionProcessor processor; | 146 | GNUNET_GETOPT_CommandLineOptionProcessor processor; |
@@ -424,7 +429,7 @@ GNUNET_GETOPT_option_mandatory (struct GNUNET_GETOPT_CommandLineOption opt); | |||
424 | * Marker for the end of the list of options. | 429 | * Marker for the end of the list of options. |
425 | */ | 430 | */ |
426 | #define GNUNET_GETOPT_OPTION_END \ | 431 | #define GNUNET_GETOPT_OPTION_END \ |
427 | { '\0', NULL, NULL, NULL, 0, 0, NULL, NULL, NULL } | 432 | { '\0', NULL, NULL, NULL, 0, 0, 0, NULL, NULL, NULL } |
428 | 433 | ||
429 | 434 | ||
430 | /** | 435 | /** |