Repository navigation
Add support for optional values
This release adds the ability to specify a value is optional for a parameter (getopt.SetOptional).
For example:
Opt string `getopt:"--opt?=STR optional STR"`
On the command line the user can either say --opt or --opt=value.
Use options.IsSet("opt") to see if it was actually set or not.