Reference
Basic
The basic functions available in cargs, which can be used to do basic command line argument parsing.
Functions
-
cag_option_init
Prepare argument options context for parsing. -
cag_option_fetch
Fetches an option from the argument list. -
cag_option_get_identifier
Gets the identifier of the option. -
cag_option_get_value
Gets the value from the option. -
cag_option_get_index
Gets the current index of the context. -
cag_option_get_error_index
Retrieves the index of an invalid option. -
cag_option_get_error_letter
Retrieves the letter character of the invalid option.
Output
This section describes functions which are used to output argument information.
Functions
-
cag_option_print_error
Prints the error associated with the invalid option to the specified destination. -
cag_option_print
Prints all options to the terminal.