lithium\console\Command::stop()

public method

Stop execution, by exiting the script.

Parameters

  • integer $status

    Numeric value that will be used on exit().

  • string|null $message

    An optional message that will be written to the stream.

Returns

void

Source

	public function stop($status = 0, $message = null) {
		if ($message) {
			($status == 0) ? $this->out($message) : $this->error($message);
		}
		exit($status);
	}