Next: , Previous: , Up: Option Argument Specification   [Contents][Index]


7.5.6.11 Option Argument Optional

The arg-optional attribute indicates that the argument to the option is optional (need not be specified on the command line). This is only valid if the arg-type is string (see Arg Type String) or keyword (see Arg Type Keyword). If it is keyword, then this attribute may also specify the default keyword to assume when the argument is not supplied. If left empty, arg-default (see Default Option Argument Value) or the zero-valued keyword will be used.

The syntax rules for identifying the option argument are:

This is overridden and the options are required if the libopts library gets configured with --disable-optional-args.