Functions | |
static void | icd_args_usage (const char *program_name, int status) |
gint | icd_args_decode (int argc, char *argv[], struct icd_context *context) |
Variables | |
static struct option const | long_options [] |
gint icd_args_decode | ( | int | argc, | |
char * | argv[], | |||
struct icd_context * | context | |||
) |
Process commandline options.
References icd_context::daemon, icd_args_usage(), icd_log_set_level(), and long_options.
Referenced by main().
static void icd_args_usage | ( | const char * | program_name, | |
int | status | |||
) | [static] |
Print usage information
program_name | name of the executable | |
status | exit with status |
Referenced by icd_args_decode().
struct option const long_options[] [static] |
Initial value:
{ {"deamon", no_argument, 0, 'd'}, {"help", no_argument, 0, 'h'}, {"version", no_argument, 0, 'V'}, {"loglevel", required_argument, 0, 'l'}, {NULL, 0, NULL, 0} }
Referenced by icd_args_decode().