extras
fn
void extras(bool help, string versn, Pattern[] options, string doc)Handles --help and --version options.
Checks if help or version was requested and throws appropriate exceptions.
Parameters
help | Whether to handle --help option. |
versn | The version string, or null if --version not supported. |
options | The parsed options from argv. |
doc | The documentation string. |
Throws
DocoptExitHelp if --help or --version was requested.