Skip to content

default configuration

Simon Cahill edited this page Mar 5, 2023 · 2 revisions

By default, getopt.net has some configurations set. These defaults are aimed to make your life - and the lives of your users - easier.

getopt.net is designed to be highly configurable, so you can parse your arguments exactly how you want.

Options

The following options are the only options present in getopt.net. Below, each option will be briefly described and its default value will be noted.

Option name Default Value Description
DoubleDashStopsParsing true By default, getopt.net will stop parsing options when "--" is encountered in AppArgs.
OnlyShortOpts false If set to true, getopt.net will only parse short options and will ignore any long options.
IgnoreEmptyOptions true If set to true, getopt.net will ignore empty command-line arguments and will return 0x00 to indicate an empty option
IgnoreMissingArgument false If set to true, getopt.net will ignoring missing required arguments and will return '?'. If set to false, getopt.net will throw a ParseException.
IgnoreInvalidOptions true If set to true, getopt.net will ignore any non-option values passed via AppArgs and will return (char)1. If set to false, getopt.net will throw a ParseException.
IgnoreEmptyAppArgs true If set to true, getopt.net will ignore if AppArgs is empty. If false, then getopt.net will throw a ParseException.
AllExceptionsDisabled false Either enables or disables all exceptions completely.