OPTARG
Optarg is an external variable used by the getopt family of functions to hold the argument value of the currently processed option. When a command-line option that requires an argument is parsed, optarg is set to point to the corresponding argument string located in argv. For options that do not take an argument, optarg is not changed by the getopt functions.
The symbol is declared as extern char *optarg and is provided by the C library. It is
Usage with getopt: In a loop, getopt returns the option character; if that option requires an argument,
Optional arguments: Some GNU implementations support optional arguments for short options by using a double colon
Notes: optarg is a pointer into the original argv array; it does not require manual allocation or