Next: , Previous: , Up: Option Arguments   [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 arg-default) 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.