3. Options For Command¶
All built commands have their definitions of how they are executed, but sometimes it’s useful to have an option to rewrite a defined parameter or extend a functionality. This is provided by options below.
Options are extended attributes which can be set either before command name or after command name, so both following examples are valid:
$ vendor/bin/phpzone <OPTION> <COMMAND>
$ vendor/bin/phpzone <COMMAND> <OPTION>
Tip
All available options can be displayed by:
$ vendor/bin/phpzone <COMMAND> --help
3.1. –stop-on-error¶
When some of defined commands in the script fails, remaining commands are still executed. If it is used, this option
forces to stop in case of any error and not attempt to execute remaining commands. A list of the remaining commands
will be displayed. This option overwrites the stop_on_error
definition.
3.2. –no-tty¶
By default all commands are executed in TTY mode. If this option is used, commands are not executed in TTY mode.
This option overwrites the tty
definition.