GNUnet  0.11.x
002.c
Go to the documentation of this file.
1 static char *string_option;
2 static int a_flag;
3 
4 // ...
6  GNUNET_GETOPT_option_string ('s', "name", "SOMESTRING",
7  gettext_noop ("text describing the string_option NAME"),
9  GNUNET_GETOPT_option_flag ('f', "flag",
10  gettext_noop ("text describing the flag option"),
11  &a_flag),
13  };
14  string_option = NULL;
16 // ...
17 
struct GNUNET_GETOPT_CommandLineOption options[]
Definition: 002.c:5
static int a_flag
Definition: 002.c:2
Definition of a command line option.
struct GNUNET_GETOPT_CommandLineOption GNUNET_GETOPT_OPTION_END
Definition: 002.c:13
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.
struct GNUNET_GETOPT_CommandLineOption GNUNET_GETOPT_option_flag('f', "flag", gettext_noop("text describing the flag option"), &a_flag)
static char * string_option
Definition: 002.c:1
#define GNUNET_SYSERR
Definition: gnunet_common.h:76
#define gettext_noop(String)
Definition: gettext.h:69