summaryrefslogtreecommitdiff
path: root/src/util/getopt_helpers.c
diff options
context:
space:
mode:
authorxrs <xrs@mail36.net>2019-06-22 22:57:55 +0200
committerxrs <xrs@mail36.net>2019-06-22 22:57:55 +0200
commitd6c25f60406596d84900aa6ac012bf8ce111d57c (patch)
tree7418c56cf25b7e0fc4e84c714f76deddf15f75f6 /src/util/getopt_helpers.c
parent93c332be89c4c65f10b7c4c49b6ed15d91b91884 (diff)
add flag for exlusive options as program agruments
Diffstat (limited to 'src/util/getopt_helpers.c')
-rw-r--r--src/util/getopt_helpers.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/util/getopt_helpers.c b/src/util/getopt_helpers.c
index 77032e501..d6ba85733 100644
--- a/src/util/getopt_helpers.c
+++ b/src/util/getopt_helpers.c
@@ -68,6 +68,7 @@ GNUNET_GETOPT_option_version (const char *version)
.shortName = 'v',
.name = "version",
.description = gettext_noop("print the version number"),
+ .option_exclusive = 1,
.processor = &print_version,
.scls = (void *) version
};