optreset
- Version 3.5 and earlier: optreset variable not available.
- Version 4.0 and later: optreset variable available.
Data Type
Boolean
Description
Used with getopt functions. Set this to true to restart the getopt functions from the start. The next time a getopt function is called, optind is set to 1.
Syntax
optreset = boolean;
Valid Values
true | Sets optind to 1; the next call to getopt(), getopt_long(), or getopt_ long_only() starts from the beginning of the argv list. |
false | getopt functions are not restarted from the beginning of the argv list. |
optreset = true;
For more information, see the following: