dext.args

Provides some convenience functionality for parsing command-line arguments by piggy-backing off std.getopt.

Members

Aliases

OptionFormatter
alias OptionFormatter = string delegate(string, Option[])
Undocumented in source.

Enums

Color
enum Color
Undocumented in source.

Functions

parseArgs
T parseArgs(string[] args, OptionFormatter formatter)

Use std.getopt.getopt to parse command-line arguments into a class or struct.

parseArgs
void parseArgs(string[] args, T instance, OptionFormatter formatter)

Use std.getopt.getopt to parse command-line arguments into a class or struct.

Structs

AllowBundling
struct AllowBundling

Allow short options to be bundled e.g. '-xvf'. Incompatible with NoBundling.

Banner
struct Banner

A banner that will be printed to the usage screen before the options.

CaseInsensitive
struct CaseInsensitive

Indicates that argument parsing is case-insensitive. Incompatible with CaseSensitive.

CaseSensitive
struct CaseSensitive

Indicates that that argument parsing is case-sensitive. Incompatible with CaseInsensitive.

Help
struct Help

Help string for an option that will be displayed on the usage screen.

KeepEndOfOptions
struct KeepEndOfOptions

Keep the end-of-options marker string.

MyOptions
struct MyOptions
Undocumented in source.
NoBundling
struct NoBundling

Disallow short options to be bundled. Incompatible with AllowBundling.

NoPassThrough
struct NoPassThrough

Don't pass unrecognized options through silently. Incompatible with PassThrough.

PassThrough
struct PassThrough

Pass unrecognized options through silently. Incompatible with NoPassThrough.

Required
struct Required

Indicates that an option is required.

ShortName
struct ShortName

A single printable character representing a short flag for a command line argument. e.x. '-v'

StopOnFirstNonOption
struct StopOnFirstNonOption

Stops processing on the first string that doesn't look like an option.

Meta

Authors

Tony J. Hudgins