cmdline.command

The Command Type for Cmdline

This modlue mainly has Command Type.

we can configure the command in manly way and then use Command.parse to parse the input command line. if you define its action callback, this callback would be called when parsing.

Members

Aliases

ActionCallBackSeq
alias ActionCallBackSeq = AliasSeq!(ActionCallback, ActionCallback_0, ActionCallback_1, ActionCallback_2, ActionCallback_3, ActionCallback_4, ActionCallback_5)

the sequence of action callbacks

ActionCallback
alias ActionCallback = void delegate()

the callback passed as a parameter of this.action

ActionCallback_0
alias ActionCallback_0 = void delegate(in OptsWrap)

the callback passed as a parameter of this.action

ActionCallback_1
alias ActionCallback_1 = void delegate(in OptsWrap, in ArgWrap)

the callback passed as a parameter of this.action

ActionCallback_2
alias ActionCallback_2 = void delegate(in OptsWrap, in ArgWrap, in ArgWrap)

the callback passed as a parameter of this.action

ActionCallback_3
alias ActionCallback_3 = void delegate(in OptsWrap, in ArgWrap, in ArgWrap, in ArgWrap)

the callback passed as a parameter of this.action

ActionCallback_4
alias ActionCallback_4 = void delegate(in OptsWrap, in ArgWrap, in ArgWrap, in ArgWrap, in ArgWrap)

the callback passed as a parameter of this.action

ActionCallback_5
alias ActionCallback_5 = void delegate(in OptsWrap, in ArgWrap, in ArgWrap, in ArgWrap, in ArgWrap, in ArgWrap)

the callback passed as a parameter of this.action

Classes

Command
class Command

Command Type

OutputConfiguration
class OutputConfiguration

the output type used in command

Enums

AddHelpPos
enum AddHelpPos

the enum represents the position of appendent help text

Functions

_getOutHelpWidth
int _getOutHelpWidth()
Undocumented in source. Be warned that the author may not have intended to support it.
_getOutHelpWidth
int _getOutHelpWidth()
Undocumented in source. Be warned that the author may not have intended to support it.
createCommand
Command createCommand(string name)

create a command by name

createCommand
Command createCommand(string nameAndArgs, string desc)

create a command by the flag that contains its name and arguments with description see Command.command(Args...)(string nameAndArgs, string desc = "")

Structs

ArgWrap
struct ArgWrap

the wrap of option and argument value

OptsWrap
struct OptsWrap

the wrap of option value map

Meta

Authors

笑愚(xiaoyu)