4using System.Globalization;
84 throw new ArgumentNullException(
"value");
188 () => Environment.GetEnvironmentVariable(
"POSIXLY_CORRECT")
195 ? StringComparer.Ordinal
196 : StringComparer.OrdinalIgnoreCase;
200#region IDisposable Members
209 GC.SuppressFinalize(
this);
222 if (Console.IsOutputRedirected)
231 width = Console.WindowWidth;
238 catch (Exception e) when (e is IOException ||
239 e is PlatformNotSupportedException ||
240 e is ArgumentOutOfRangeException)
The Maybe type models an optional value. A value of type Maybe a either contains a value of type a (r...
bool MatchJust(out T value)
Matches a value returning true and value itself via output parameter.
Provides settings for CommandLine.Parser. Once consumed cannot be reused.
bool PosixlyCorrect
Whether getopt-like processing should follow the POSIX rules (the equivalent of using the "+" prefix ...
int MaximumDisplayWidth
Gets or sets the maximum width of the display. This determines word wrap when displaying the text.
Maybe< bool > enableDashDash
bool EnableDashDash
Gets or sets a value indicating whether enable double dash '–' syntax, that forces parsing of all sub...
ParserSettings(int? maxDisplayWidth=null)
Initializes a new instance of the ParserSettings class.
bool AllowMultiInstance
Gets or sets a value indicating whether options are allowed to be specified multiple times....
bool CaseInsensitiveEnumValues
Gets or sets a value indicating whether perform case sensitive comparisons of values....
~ParserSettings()
Finalizes an instance of the CommandLine.ParserSettings class.
bool AutoHelp
Gets or sets a value indicating whether implicit option or verb 'help' should be supported.
void Dispose()
Frees resources owned by the instance.
bool IgnoreUnknownArguments
Gets or sets a value indicating whether the parser shall move on to the next argument and ignore the ...
CultureInfo ParsingCulture
Gets or sets the culture used when parsing arguments to typed properties.
Maybe< bool > posixlyCorrect
StringComparer NameComparer
bool GetoptMode
Whether strict getopt-like processing is applied to option values; if true, AllowMultiInstance and En...
bool CaseSensitive
Gets or sets a value indicating whether perform case sensitive comparisons. Note that case insensitiv...
const int DefaultMaximumLength
Maybe< bool > allowMultiInstance
CultureInfo parsingCulture
void Dispose(bool disposing)
bool ignoreUnknownArguments
TextWriter HelpWriter
Gets or sets the System.IO.TextWriter used for help method output. Setting this property to null,...
bool caseInsensitiveEnumValues
static ParserSettings CreateDefault(int? maxDisplayWidth=null)
bool AutoVersion
Gets or sets a value indicating whether implicit option or verb 'version' should be supported.