Program

Represents program.

This is the entry-point for building your program model.

Constructors

this
this(string name, string version_ = "1.0")

Creates new instance of Program.

Members

Functions

add
typeof(this) add(T data)

Proxy call to Command.add returning Program.

author
typeof(this) author(string author)

Adds program author

authors
typeof(this) authors(string[] authors)

Sets program authors

authors
string[] authors()

Program authors

binaryName
typeof(this) binaryName(string binaryName)

Sets program binary name

binaryName
string binaryName()

Program binary name

name
typeof(this) name(string name)

Sets program name

name
string name()

Program name

summary
typeof(this) summary(string summary)

Sets program summary (one-liner)

summary
string summary()

Program summary (one-liner)

topic
typeof(this) topic(string topic)

Sets topic group for this command.

topic
string topic()

Topic group for this command.

topicGroup
typeof(this) topicGroup(string topic)

Sets topic group for the following commands.

version_
typeof(this) version_(string version_)

Sets program version

version_
string version_()

Program version

Inherited Members

From Command

name
typeof(this) name(string name)

Sets command name

name
string name()

Program name

version_
typeof(this) version_(string version_)

Sets command version

version_
string version_()

Program version

summary
typeof(this) summary(string summary)

Sets program summary (one-liner)

summary
string summary()

Program summary

add
typeof(this) add(Option option)

Adds option

options
Option[] options()

Command options

add
typeof(this) add(Flag flag)

Adds command flag

flags
Flag[] flags()

Command flags

add
typeof(this) add(Argument argument)

Adds command argument

arguments
Argument[] arguments()

Command arguments

add
typeof(this) add(Command command)

Registers subcommand

commands
Command[string] commands()

Command sub-commands

defaultCommand
typeof(this) defaultCommand(string name)

Sets default command.

defaultCommand
string defaultCommand()

Gets default command

chain
string[] chain()

Gets command chain.

Meta