InputOption

InputOption

class InputOption

Represents a command line option.

Constants

VALUE_NONE
VALUE_REQUIRED
VALUE_OPTIONAL
VALUE_IS_ARRAY

Methods

__construct(string $name, string|array $shortcut = null, int $mode = null, string $description = '', mixed $default = null)

Constructor.

string getShortcut()

Returns the option shortcut.

string getName()

Returns the option name.

bool 登录查看完整内容