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 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 Arguments) specified, but not the arg-optional (see arg-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.