GNUnet 0.22.2
002.c
Go to the documentation of this file.
1static char *string_option;
2static int a_flag;
3
4// ...
6 GNUNET_GETOPT_option_string ('s', "name", "SOMESTRING",
7 gettext_noop ("text describing the string_option NAME"),
10 gettext_noop ("text describing the flag option"),
11 &a_flag),
13 };
14 string_option = NULL;
16// ...
17
static char * string_option
Definition: 002.c:1
static int a_flag
Definition: 002.c:2
struct GNUNET_GETOPT_CommandLineOption GNUNET_GETOPT_OPTION_END
Definition: 002.c:13
struct GNUNET_GETOPT_CommandLineOption GNUNET_GETOPT_option_flag('f', "flag", gettext_noop("text describing the flag option"), &a_flag)
struct GNUNET_GETOPT_CommandLineOption options[]
Definition: 002.c:5
#define gettext_noop(String)
Definition: gettext.h:74
struct GNUNET_GETOPT_CommandLineOption GNUNET_GETOPT_option_string(char shortName, const char *name, const char *argumentHelp, const char *description, char **str)
Allow user to specify a string.
@ GNUNET_SYSERR
Definition of a command line option.