ExArg module: functions to parse command line argument in your program


Enumerations

enum  ExArgType { EXARG_NONE, EXARG_INT, EXARG_STRING }
 Enum type which defines how a argument must be interpreted. More...

Functions

void exarg_add_help_header (gchar *header)
 Adds user defined header to automatic help command generated.
void exarg_add_usage_header (gchar *header)
 Adds user defined header to automatic usage command generated.
void exarg_disable_help ()
 Disable autohelp.
void exarg_end ()
 Ends exarg library execution.
gint exarg_get_int (gchar *arg_name)
 Allows to get int value for a given command line argument.
GList * exarg_get_params ()
 Returns free params defined at command line.
gchar * exarg_get_string (gchar *arg_name)
 Allows to get defined string for a given command line.
gchar * exarg_get_string_alloc (gchar *arg_name)
 Allows to get defined string for a given command line allocating the result.
void exarg_install_arg (gchar *arg_name, gchar *arg_short_name, ExArgType type, gchar *description)
 Installs a new command line to be accepted.
void exarg_install_argv (gint num_arg,...)
 Installs several command lines to be accepted.
gboolean exarg_is_defined (gchar *arg_name)
 Allows to check if a user have defined a command.
gboolean exarg_is_definedv (gchar *first_value,...)
 Allows to check several values to be defined at the same time.
void exarg_parse (gint argc, gchar **argv)
 Makes exarg to start parsing argument options.
void exarg_post_help_header (gchar *post_header)
 Adds user defined post header for help command.
void exarg_post_usage_header (gchar *post_header)
 Adds user defined post header for usage command.