Command.setVersion

set the version of the command. if flags and desc not defined, then it will automatically set the version option flag -V, --version and version command name version

class Command
setVersion
(
string str
,
string flags = ""
,
string desc = ""
)

Parameters

str string

the version string like 0.0.1

flags string

the version option flag, which is a bool option

desc string

the description of the version command and version option

Return Value

Type: Self

Self for chain call

Meta