Ookii.CommandLine Namespace |
The Ookii.CommandLine namespace contains types to aid with defining a set of accepted command line arguments, parsing those arguments, and generating usage information for them.
Command line parsing is done by the CommandLineParser class. The help topic for that class describes what you need to know to get started using the Ookii.CommandLine library.
Ookii.CommandLine also provides functionality for creating command line applications that perform multiple related operations or commands, where each operation has its own arguments. See the ShellCommand class for more information.
Class | Description | |
---|---|---|
![]() | AliasAttribute |
Defines an alternative name for a command line argument.
|
![]() | AllowDuplicateDictionaryKeysAttribute |
Indicates that a dictionary argument accepts the same key more than once.
|
![]() | 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 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 into a class of the specified type.
|
![]() | CreateShellCommandOptions |
Provides options for the CreateShellCommand(Assembly, String, String, Int32, CreateShellCommandOptions) method.
|
![]() | KeyValuePairConverterTKey, TValue |
Converts key-value pairs to and from strings using key=value notation.
|
![]() | LineWrappingTextWriter |
Implements a TextWriter that writes text to another TextWriter, wrapping
lines at word boundaries at a specific maximum line length.
|
![]() | MultiValueSeparatorAttribute |
Specifies a separator for the values of multi-value arguments
|
![]() | ShellCommand |
Represents a command that can be invoked through a command line application that supports more than one operation.
|
![]() | ShellCommandAttribute |
Attribute that specifies the name of a ShellCommand.
|
![]() | ValueDescriptionAttribute |
Provides a custom value description for use in the usage help for an argument created from a constructor parameter.
|
![]() | WriteUsageOptions |
Options for the WriteUsage(TextWriter, Int32, WriteUsageOptions) method.
|
Enumeration | Description | |
---|---|---|
![]() | CommandLineArgumentErrorCategory |
Specifies the kind of error that occurred while parsing arguments.
|