JWS C Library
C language utility library
Option_no_arg Struct Reference

Data structure for an option that does not take an argument. More...

#include <option.h>

Collaboration diagram for Option_no_arg:

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_no_arg func
 Function for processing the option, no argument.

Detailed Description

Data structure for an option that does not take an argument.

An option is specified on the command-line as follows

   --option-string
   -O

where

   Option_no_arg::string = "option-string"
   Option_no_arg::flag = 'O'

Specifying an option in a file is similar, but only the string can be used.

Definition at line 166 of file option.h.


Field Documentation

Long name of the option.

If not used, set to NULL.

Definition at line 173 of file option.h.

Character flag for the option.

If not used, set to 0 or '\0'.

Definition at line 180 of file option.h.

String containing a short description of the option.

If not used, set to NULL.

Definition at line 187 of file option.h.

Function for processing the option, no argument.

Definition at line 190 of file option.h.


The documentation for this struct was generated from the following file: