cmdline.argument

The Argument Type for Cmdline

This modlue mainly has Argument Type. We can set the inner value by manly way. And if the Argument value is valid, then we can initialize it and get the inner value.

Members

Aliases

ArgArrayValue
alias ArgArrayValue = OptionArrayValue

same as OptionArrayValue

ArgBaseValue
alias ArgBaseValue = OptionBaseValue

same as OptionBaseValue

ArgMemberFnCallError
alias ArgMemberFnCallError = cmdline.error.OptionMemberFnCallError

same as cmdline.error.OptionMemberFnCallError

ArgNullable
alias ArgNullable = Nullable!ArgValueSeq

same as OptionNullable

ArgValueSeq
alias ArgValueSeq = OptionValueSeq

same as OptionValueSeq

ArgVariant
alias ArgVariant = Variant!ArgValueSeq

same as OptionVariant

isArgValueType
alias isArgValueType(T) = isOptionValueType!T

test whether the typeT is innner argument value type

isBaseArgValueType
alias isBaseArgValueType(T) = isBaseOptionValueType!T

test whether the typeT is base innner argument value type

Classes

Argument
class Argument

the argument type. store the value that command line's arguments input. we can get the inner value after it is initialized.

ValueArgument
class ValueArgument(T)
Undocumented in source.

Functions

createArgument
Argument createArgument(string flag, string desc)

create bool argument

createArgument
Argument createArgument(string flag, string desc)

create T or T[] argument, which T must not bool if flag is like <name...> then the argument's innner type is T[]

createArgument
Argument createArgument(string flag, string desc)

create bool argument

createArgument
Argument createArgument(string flag, string desc)

create a argument, whose inner type is array type of T and T is not bool

Meta

Authors

笑愚(xiaoyu)