protected static function _callable($request, $params, $options) {
		$params = compact('request', 'params', 'options');
		return Filters::run(get_called_class(), __FUNCTION__, $params, function($params) {
			$request = $params['request'];
			$params = $params['params'];
			$name = $params['command'];

			if (!$name) {
				$request->params['args'][0] = $name;
				$name = 'lithium\console\command\Help';
			}
			if (class_exists($class = Libraries::locate('command', $name))) {
				return new $class(compact('request'));
			}
			throw new UnexpectedValueException("Command `{$name}` not found.");
		});
	}
protected static function _callable($request, $params, $options) {
		$params = compact('request', 'params', 'options');
		return Filters::run(get_called_class(), __FUNCTION__, $params, function($params) {
			$request = $params['request'];
			$params = $params['params'];
			$name = $params['command'];

			if (!$name) {
				$request->params['args'][0] = $name;
				$name = 'lithium\console\command\Help';
			}
			if (class_exists($class = Libraries::locate('command', $name))) {
				return new $class(compact('request'));
			}
			throw new UnexpectedValueException("Command `{$name}` not found.");
		});
	}
protected static function _callable ( $ request , $ params , $ options ) { $ params = compact ( 'request' , 'params' , 'options' ) ; return Filters :: run ( get_called_class ( ) , __FUNCTION__ , $ params , function ( $ params ) { $ request = $ params [ 'request' ] ; $ params = $ params [ 'params' ] ; $ name = $ params [ 'command' ] ; if ( ! $ name ) { $ request -> params [ 'args' ] [ 0 ] = $ name ; $ name = 'lithium\console\command\Help' ; } if ( class_exists ( $ class = Libraries :: locate ( 'command' , $ name ) ) ) { return new $ class ( compact ( 'request' ) ) ; } throw new UnexpectedValueException ( "Command `{$name}` not found." ) ; } ) ; }
Determines which command to use for current request.

@param object $request An instance of a `Request` object.
@param array $params Request params that can be accessed inside the filter.
@param array $options
@return class lithium\console\Command Returns the instantiated command object.
@filter
Determines which command to use for current request .