JWS C Library
C language utility library
|
Data structure for an option that takes an argument. More...
#include <option.h>
Data Fields | |
Option_string | string |
Long name of the option. | |
Option_flag | flag |
Character flag for the option. | |
Option_desc | desc |
String containing a short description of the option. | |
Option_func_with_arg | func |
Function for processing the option and its argument. |
Data structure for an option that takes an argument.
An option is specified on the command-line as follows
--option-string=arg
-O arg
where
Option_with_arg::string = "option-string" Option_with_arg::flag = 'O' Option_arg = "arg"
Specifying an option in a file is similar, but only the string can be used, for instance
option-string=arg