src/CLI/ArgumentParser.php
public function parseArguments( $fallBackOnEmptyPair = FALSE )
	{
		$request	= new CLI_RequestReceiver( $fallBackOnEmptyPair );
		$arguments	= $request->getAll();
		$commands	= array();
		$parameters	= array();
		foreach( $request->getAll() as $key => $value ){
			if( is_numeric( $key ) )
				$commands[]	= $value;
			else
				$parameters[$key]	= $value;
		}
		$script		= array_shift( $commands );
		$list	= array();
		foreach( $parameters as $key => $value ){
			$reverse	= array_flip( $this->shortcuts );
			if( in_array( $key, array_keys( $this->shortcuts ) ) )
				$key	= $this->shortcuts[$key];
			$list[$key]	= $value;
		}
#		$this->set( "__file", __FILE__ );
#		$this->set( "__class", get_class( $this ) );
		$this->set( "path", getCwd() );
		$this->set( "script", $script );
		$this->set( "commands", $commands );
		$this->set( "parameters", $list );
	}
public function parseArguments( $fallBackOnEmptyPair = FALSE )
	{
		$request	= new CLI_RequestReceiver( $fallBackOnEmptyPair );
		$arguments	= $request->getAll();
		$commands	= array();
		$parameters	= array();
		foreach( $request->getAll() as $key => $value ){
			if( is_numeric( $key ) )
				$commands[]	= $value;
			else
				$parameters[$key]	= $value;
		}
		$script		= array_shift( $commands );
		$list	= array();
		foreach( $parameters as $key => $value ){
			$reverse	= array_flip( $this->shortcuts );
			if( in_array( $key, array_keys( $this->shortcuts ) ) )
				$key	= $this->shortcuts[$key];
			$list[$key]	= $value;
		}
#		$this->set( "__file", __FILE__ );
#		$this->set( "__class", get_class( $this ) );
		$this->set( "path", getCwd() );
		$this->set( "script", $script );
		$this->set( "commands", $commands );
		$this->set( "parameters", $list );
	}
public function parseArguments ( $ fallBackOnEmptyPair = FALSE ) { $ request = new CLI_RequestReceiver ( $ fallBackOnEmptyPair ) ; $ arguments = $ request -> getAll ( ) ; $ commands = array ( ) ; $ parameters = array ( ) ; foreach ( $ request -> getAll ( ) as $ key => $ value ) { if ( is_numeric ( $ key ) ) $ commands [ ] = $ value ; else $ parameters [ $ key ] = $ value ; } $ script = array_shift ( $ commands ) ; $ list = array ( ) ; foreach ( $ parameters as $ key => $ value ) { $ reverse = array_flip ( $ this -> shortcuts ) ; if ( in_array ( $ key , array_keys ( $ this -> shortcuts ) ) ) $ key = $ this -> shortcuts [ $ key ] ; $ list [ $ key ] = $ value ; } #		$this->set( "__file", __FILE__ );
 #		$this->set( "__class", get_class( $this ) );
 $ this -> set ( "path" , getCwd ( ) ) ; $ this -> set ( "script" , $ script ) ; $ this -> set ( "commands" , $ commands ) ; $ this -> set ( "parameters" , $ list ) ; }
Parses Arguments of called Script.
@access		public
@return		void
Parses Arguments of called Script .