lithium\console\Request::args()

public method

Get the value of a command line argument at a given key

Parameters

  • integer $key

Returns

mixed

returns null if key does not exist or the value of the key in the args array

Source

	public function args($key = 0) {
		if (!empty($this->args[$key])) {
			return $this->args[$key];
		}
		return null;
	}