optopt

  • Version 3.5 and earlier: optopt variable not available.
  • Version 4.0 and later : optopt variable available.

String, read-only

Used with getopt functions. Contains the letter of the last option that had a problem.

A string.

if (error) print ("Bad option", optopt);

For more information, please see the following: