C# (CSharp) CommandLine Namespace

Nested Namespaces

CommandLine.ColorScheme
CommandLine.Commands
CommandLine.Core
CommandLine.Models
CommandLine.Parsing
CommandLine.Tests
CommandLine.Text
CommandLine.Utility

Сlasses

Name Description
ApplicationInfo Returns information about the current application from the assembly properties.
Argument Base class for all types of command-line arguments. Each argument must have a key that will be used to access the value in the returned Dictionary, and a description that is shown when help is displayed.
ArgumentParser
AssemblyLicenseAttribute
BaseOptionAttribute Provides base properties for creating an attribute, used to define rules for command line parsing.
CharEnumeratorEx
CommandLineParser Provides methods to parse command line arguments. Default implementation for CommandLine.ICommandLineParser.
CommandLineParserException
CommandLineParserSettings Specifies a set of features to configure a CommandLine.CommandLineParser behavior.
Definition Class representing a set of Argument definitions.
HelpOptionAttribute
IncompatibleTypesException
ListValidator ArgumentValidator implementation using a list of values. Supports validations of both single and multiple comma-separated argument values via the PermitMultipleValues property. Argument validation is not case-sensitive, unless the CaseSensitive property is set to true.
LongOptionParser
NullInstance Models a null result when constructing a ParserResult{T} in a faling verbs scenario.
OneCharStringEnumerator
OptionArrayAttribute
OptionAttribute
OptionGroupParser
OptionInfo
OptionListAttribute
OptionMap
ParseException Exception thrown when there is an error parsing the command-line
Parser Parser for command line arguments. The parser specification is infered from the instance fields of the object specified as the destination of the parse. Valid argument types are: int, uint, string, bool, enums Also argument types of Array of the above types are also valid. Error checking options can be controlled by adding a ArgumentAttribute to the instance fields of the destination object. At most one field may be marked with the DefaultArgumentAttribute indicating that arguments without a '-' or '/' prefix will be parsed as that argument. If not specified then the parser will infer default options for parsing each instance field. The default long name of the argument is the field name. The default short name is the first character of the long name. Long names and explicitly specified short names must be unique. Default short names will be used provided that the default short name does not conflict with a long name or an explicitly specified short name. Arguments which are array types are collection arguments. Collection arguments can be specified multiple times.
ParserException
ParserSettings Provides settings for CommandLine.Parser. Once consumed cannot be reused.
PositionalArgument Positional arguments are those where a value is specified without its key; the order of argument values identify the positional argument.
Program Command line interface for PathFinding features.
RangeValidator ArgumentValidator implementation using a range.
RegexValidator Validator implementation using a regular expression.
StringArrayEnumerator
StringEnumeratorEx
TargetWrapper
UI Main class for interacting via the command-line. Handles the definition and parsing of command-line arguments, and the display of usage and help messages.
ValueArgument ValueArguments are arguments that take a value. This is the parent class for positional and keyword arguments.
ValueAttribute
ValueListAttribute
VerbAttribute
Win32 Class to hold definition of external SetConsoleCtrlHandler routine.
cmdline