Class InputDefinition
The InputDefinition for Peridot defines what command line arguments
and options are available by default.
-
Symfony\Component\Console\Input\InputDefinition
-
Peridot\Console\InputDefinition
Methods summary
public
|
#
__construct( )
Define input definition for peridot
Define input definition for peridot
Overrides
|
public
Peridot\Console\InputDefinition
|
#
argument( string $name, null $mode = null, string $description = '', null $default = null )
Add an argument
Parameters
- $name
- $mode
- $description
- $default
Returns
|
public
Peridot\Console\InputDefinition
|
#
option( string $name, null $shortcut = null, null $mode = null, string $description = '', null $default = null )
Add an option
Parameters
- $name
- $shortcut
- $mode
- $description
- $default
Returns
|
Methods inherited from Symfony\Component\Console\Input\InputDefinition
addArgument(),
addArguments(),
addOption(),
addOptions(),
asText(),
asXml(),
getArgument(),
getArgumentCount(),
getArgumentDefaults(),
getArgumentRequiredCount(),
getArguments(),
getOption(),
getOptionDefaults(),
getOptionForShortcut(),
getOptions(),
getSynopsis(),
hasArgument(),
hasOption(),
hasShortcut(),
setArguments(),
setDefinition(),
setOptions()
|