optopt
- Version 3.5 and earlier: optopt variable not available.
- Version 4.0 and later : optopt variable available.
Data Type
String, read-only
Description
Used with getopt functions. Contains the letter of the last option that had a problem.
Valid Values
A string.
if (error) print ("Bad option", optopt);
For more information, see the following: