Next: , Previous: , Up: Option Attributes   [Contents][Index]


7.5.5.9 Default Option

If your program processes its arguments in named option mode (See long-opts in Program Description Attributes), then you may select one of your options to be the default option. Do so by using attribute default with one of the options. The option so specified must have an arg-type (see Option Argument Specification) specified, but not the arg-optional (see Option Argument Optional) attribute. That is to say, the option argument must be required.

If you have done this, then any arguments that do not match an option name and do not contain an equal sign (=) will be interpreted as an option argument to the default option.