|
static enum GNUNET_GenericReturnValue | print_version (struct GNUNET_GETOPT_CommandLineProcessorContext *ctx, void *scls, const char *option, const char *value) |
| Print out program version (implements –version). More...
|
|
struct GNUNET_GETOPT_CommandLineOption | GNUNET_GETOPT_option_version (const char *version) |
| Define the option to print the version of the application (-v option) More...
|
|
static enum GNUNET_GenericReturnValue | format_help (struct GNUNET_GETOPT_CommandLineProcessorContext *ctx, void *scls, const char *option, const char *value) |
| Print out details on command line options (implements –help). More...
|
|
struct GNUNET_GETOPT_CommandLineOption | GNUNET_GETOPT_option_help (const char *about) |
| Defining the option to print the command line help text (-h option). More...
|
|
static enum GNUNET_GenericReturnValue | increment_value (struct GNUNET_GETOPT_CommandLineProcessorContext *ctx, void *scls, const char *option, const char *value) |
| Set an option of type 'unsigned int' from the command line. More...
|
|
struct GNUNET_GETOPT_CommandLineOption | GNUNET_GETOPT_option_increment_uint (char shortName, const char *name, const char *description, unsigned int *val) |
| Increment val each time the option flag is given by one. More...
|
|
struct GNUNET_GETOPT_CommandLineOption | GNUNET_GETOPT_option_verbose (unsigned int *level) |
| Define the '-V' verbosity option. More...
|
|
static enum GNUNET_GenericReturnValue | set_one (struct GNUNET_GETOPT_CommandLineProcessorContext *ctx, void *scls, const char *option, const char *value) |
| Set an option of type 'int' from the command line to 1 if the given option is present. More...
|
|
struct GNUNET_GETOPT_CommandLineOption | GNUNET_GETOPT_option_flag (char shortName, const char *name, const char *description, int *val) |
| Allow user to specify a flag (which internally means setting an integer to 1/GNUNET_YES/GNUNET_OK. More...
|
|
static enum GNUNET_GenericReturnValue | set_string (struct GNUNET_GETOPT_CommandLineProcessorContext *ctx, void *scls, const char *option, const char *value) |
| Set an option of type 'char *' from the command line. More...
|
|
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. More...
|
|
struct GNUNET_GETOPT_CommandLineOption | GNUNET_GETOPT_option_loglevel (char **level) |
| Define the '-L' log level option. More...
|
|
static enum GNUNET_GenericReturnValue | set_filename (struct GNUNET_GETOPT_CommandLineProcessorContext *ctx, void *scls, const char *option, const char *value) |
| Set an option of type 'char *' from the command line with filename expansion a la GNUNET_STRINGS_filename_expand(). More...
|
|
struct GNUNET_GETOPT_CommandLineOption | GNUNET_GETOPT_option_filename (char shortName, const char *name, const char *argumentHelp, const char *description, char **str) |
| Allow user to specify a filename (automatically path expanded). More...
|
|
struct GNUNET_GETOPT_CommandLineOption | GNUNET_GETOPT_option_logfile (char **logfn) |
| Allow user to specify log file name (-l option) More...
|
|
struct GNUNET_GETOPT_CommandLineOption | GNUNET_GETOPT_option_cfgfile (char **fn) |
| Allow user to specify configuration file name (-c option) More...
|
|
static enum GNUNET_GenericReturnValue | set_ulong (struct GNUNET_GETOPT_CommandLineProcessorContext *ctx, void *scls, const char *option, const char *value) |
| Set an option of type 'unsigned long long' from the command line. More...
|
|
struct GNUNET_GETOPT_CommandLineOption | GNUNET_GETOPT_option_ulong (char shortName, const char *name, const char *argumentHelp, const char *description, unsigned long long *val) |
| Allow user to specify an unsigned long long . More...
|
|
static enum GNUNET_GenericReturnValue | set_timetravel_time (struct GNUNET_GETOPT_CommandLineProcessorContext *ctx, void *scls, const char *option, const char *value) |
| Set an option of type 'struct GNUNET_TIME_Relative' from the command line. More...
|
|
struct GNUNET_GETOPT_CommandLineOption | GNUNET_GETOPT_option_timetravel (char shortName, const char *name) |
| Allow user to specify a long long with an offset to add to the current system time to construct the time seen by the application. More...
|
|
static enum GNUNET_GenericReturnValue | set_relative_time (struct GNUNET_GETOPT_CommandLineProcessorContext *ctx, void *scls, const char *option, const char *value) |
| Set an option of type 'struct GNUNET_TIME_Relative' from the command line. More...
|
|
struct GNUNET_GETOPT_CommandLineOption | GNUNET_GETOPT_option_relative_time (char shortName, const char *name, const char *argumentHelp, const char *description, struct GNUNET_TIME_Relative *val) |
| Allow user to specify a struct GNUNET_TIME_Relative (using human-readable "fancy" time). More...
|
|
static enum GNUNET_GenericReturnValue | set_absolute_time (struct GNUNET_GETOPT_CommandLineProcessorContext *ctx, void *scls, const char *option, const char *value) |
| Set an option of type 'struct GNUNET_TIME_Absolute' from the command line. More...
|
|
struct GNUNET_GETOPT_CommandLineOption | GNUNET_GETOPT_option_absolute_time (char shortName, const char *name, const char *argumentHelp, const char *description, struct GNUNET_TIME_Absolute *val) |
| Allow user to specify a struct GNUNET_TIME_Absolute (using human-readable "fancy" time). More...
|
|
static enum GNUNET_GenericReturnValue | set_timestamp (struct GNUNET_GETOPT_CommandLineProcessorContext *ctx, void *scls, const char *option, const char *value) |
| Set an option of type 'struct GNUNET_TIME_Timestamp' from the command line. More...
|
|
struct GNUNET_GETOPT_CommandLineOption | GNUNET_GETOPT_option_timestamp (char shortName, const char *name, const char *argumentHelp, const char *description, struct GNUNET_TIME_Timestamp *val) |
| Allow user to specify a struct GNUNET_TIME_Timestamp (using human-readable "fancy" time). More...
|
|
static enum GNUNET_GenericReturnValue | set_uint (struct GNUNET_GETOPT_CommandLineProcessorContext *ctx, void *scls, const char *option, const char *value) |
| Set an option of type 'unsigned int' from the command line. More...
|
|
struct GNUNET_GETOPT_CommandLineOption | GNUNET_GETOPT_option_uint (char shortName, const char *name, const char *argumentHelp, const char *description, unsigned int *val) |
| Allow user to specify an unsigned int . More...
|
|
static enum GNUNET_GenericReturnValue | set_uint16 (struct GNUNET_GETOPT_CommandLineProcessorContext *ctx, void *scls, const char *option, const char *value) |
| Set an option of type 'uint16_t' from the command line. More...
|
|
struct GNUNET_GETOPT_CommandLineOption | GNUNET_GETOPT_option_uint16 (char shortName, const char *name, const char *argumentHelp, const char *description, uint16_t *val) |
| Allow user to specify an uint16_t. More...
|
|
static enum GNUNET_GenericReturnValue | set_base32 (struct GNUNET_GETOPT_CommandLineProcessorContext *ctx, void *scls, const char *option, const char *value) |
| Set an option of type 'unsigned int' from the command line. More...
|
|
static void | free_bc (void *cls) |
| Helper function to clean up after GNUNET_GETOPT_option_base32_fixed_size. More...
|
|
struct GNUNET_GETOPT_CommandLineOption | GNUNET_GETOPT_option_base32_fixed_size (char shortName, const char *name, const char *argumentHelp, const char *description, void *val, size_t val_size) |
| Allow user to specify a binary value using Crockford Base32 encoding. More...
|
|
struct GNUNET_GETOPT_CommandLineOption | GNUNET_GETOPT_option_mandatory (struct GNUNET_GETOPT_CommandLineOption opt) |
| Make the given option mandatory. More...
|
|
struct GNUNET_GETOPT_CommandLineOption | GNUNET_GETOPT_option_exclusive (struct GNUNET_GETOPT_CommandLineOption opt) |
| Make the given option mutually exclusive with other options. More...
|
|
implements command line that sets option
- Author
- Christian Grothoff
Definition in file getopt_helpers.c.