Ookii.CommandLine Namespace

Provides functionality for defining and parsing command line arguments, and for generating usage help.

Classes

AliasAttribute Defines an alternative name for a command line argument or a subcommand.
AllowDuplicateDictionaryKeysAttribute Indicates that a dictionary argument accepts the same key more than once.
ApplicationFriendlyNameAttribute Sets the friendly name of the application to be used in the output of the "-Version" argument or "version" subcommand.
ArgumentNameAttribute Indicates an alternative argument name for an argument defined by a constructor parameter.
ArgumentParsedEventArgs Provides data for the ArgumentParsed event.
CommandLineArgument Provides information about command line arguments that are recognized by a CommandLineParser.
CommandLineArgumentAttribute Indicates a property or method of a class defines a command line argument.
CommandLineArgumentException The exception that is thrown when command line parsing failed due to an invalid command line.
CommandLineConstructorAttribute Indicates the constructor that should be used by the CommandLineParser class, if a class has multiple public constructors.
CommandLineParser Parses command line arguments defined by a class of the specified type.
CommandLineParserT A generic version of the CommandLineParser class that offers strongly typed Parse methods.
DuplicateArgumentEventArgs Provides data for the DuplicateArgument event.
KeyTypeConverterAttribute Specifies a TypeConverter to use for the keys of a dictionary argument.
KeyValuePairConverter Static class providing constants for the KeyValuePairConverterTKey, TValue class.
KeyValuePairConverterTKey, TValue Converts key-value pairs to and from strings using "key=value" notation.
KeyValueSeparatorAttribute Defines a custom key/value separator for dictionary arguments.
LineWrappingTextWriter Implements a TextWriter that writes text to another TextWriter, white-space wrapping lines at the specified maximum line length, and supporting indentation.
LocalizedStringProvider Provides custom localized strings.
MultiValueSeparatorAttribute Specifies a separator for the values of multi-value arguments.
NameTransformExtensions Extension methods for the NameTransform enumeration.
ParseOptions Provides options for the ParseT(String, ParseOptions) method and the CommandLineParser(Type, ParseOptions) constructor.
ParseOptionsAttribute Provides options that alter parsing behavior for the class that the attribute is applied to.
ShortAliasAttribute Defines an alternative short name for a command line argument.
TypeConverterBaseT Base class to help with implementing a TypeConverter that can convert to/from a String.
UsageWriter Creates usage help for the CommandLineParser class and the CommandManager class.
ValueDescriptionAttribute Provides a custom value description for use in the usage help for an argument created from a constructor parameter.
ValueTypeConverterAttribute Specifies a TypeConverter to use for the values of a dictionary argument.

Structures

ParseResult Indicates the result of the last call to the Parse(String, Int32) method.

Enumerations

ArgumentKind Specifies what kind of argument an instance of the CommandLineArgument class represents.
CommandLineArgumentErrorCategory Specifies the kind of error that occurred while parsing arguments.
DescriptionListFilterMode Indicates which arguments should be included in the description list when printing usage.
DescriptionListSortMode Indicates how the arguments in the description list should be sorted.
ErrorMode Indicates whether something is an error, warning, or allowed.
NameTransform Indicates how to transform the property, parameter, or method name if an argument doesn't have an explicit name.
ParseStatus Indicates the status of the last call to the Parse(String, Int32) method.
ParsingMode Indicates what argument parsing rules should be used to interpret the command line.
UsageHelpRequest Indicates if and how usage is shown if an error occurred parsing the command line.
UsageWriterOperation Indicates the type of operation in progress.
WrappingMode Indicates how the LineWrappingTextWriter class will wrap text at the maximum line length.