Pike v8.1 release 6

Class Arg.OptLibrary()->MaybeOpt

Inheritance graph
Arg.OptLibrary.Opt Arg.OptLibrary.NoOpt Arg.OptLibrary.MaybeOpt
Description

Parses an option that may have a parameter. --foo, -x and x in a sequence like -axb will set the variable to 1. --foo=bar, -x bar and -x=bar will set the variable to bar.

Example

Opt debug = MaybeOpt("--debug");


Inherit NoOpt

inherit NoOpt : NoOpt