protected function setOption() {
		
		// find the value that was passed
		$updateOption = Console::findCommandOptionValue("set");
		$updateOptionBits = explode("=",$updateOption);
		if (count($updateOptionBits) == 1) {
			Console::writeError("the --set value should look like <info>optionName=\"optionValue\"</info>. nothing was updated...");
		}
		
		// set the name and value that were passed
		$updateName   = $updateOptionBits[0];
		$updateValue  = (($updateOptionBits[1][0] == "\"") || ($updateOptionBits[1][0] == "'")) ? substr($updateOptionBits[1],1,strlen($updateOptionBits[1])-1) : $updateOptionBits[1];
		
		// make sure the option being updated already exists
		$currentValue = Config::getOption($updateName);
		
		if (!$currentValue) {
			Console::writeError("the --set option you provided, <info>".$updateName."</info>, does not exists in the config. nothing will be updated...");
		} else {
			Config::updateConfigOption($updateName,$updateValue);
			Console::writeInfo("config option updated...");
		}
		
	}
protected function setOption() {
		
		// find the value that was passed
		$updateOption = Console::findCommandOptionValue("set");
		$updateOptionBits = explode("=",$updateOption);
		if (count($updateOptionBits) == 1) {
			Console::writeError("the --set value should look like <info>optionName=\"optionValue\"</info>. nothing was updated...");
		}
		
		// set the name and value that were passed
		$updateName   = $updateOptionBits[0];
		$updateValue  = (($updateOptionBits[1][0] == "\"") || ($updateOptionBits[1][0] == "'")) ? substr($updateOptionBits[1],1,strlen($updateOptionBits[1])-1) : $updateOptionBits[1];
		
		// make sure the option being updated already exists
		$currentValue = Config::getOption($updateName);
		
		if (!$currentValue) {
			Console::writeError("the --set option you provided, <info>".$updateName."</info>, does not exists in the config. nothing will be updated...");
		} else {
			Config::updateConfigOption($updateName,$updateValue);
			Console::writeInfo("config option updated...");
		}
		
	}
protected function setOption ( ) { // find the value that was passed $ updateOption = Console :: findCommandOptionValue ( "set" ) ; $ updateOptionBits = explode ( "=" , $ updateOption ) ; if ( count ( $ updateOptionBits ) == 1 ) { Console :: writeError ( "the --set value should look like <info>optionName=\"optionValue\"</info>. nothing was updated..." ) ; } // set the name and value that were passed $ updateName = $ updateOptionBits [ 0 ] ; $ updateValue = ( ( $ updateOptionBits [ 1 ] [ 0 ] == "\"" ) || ( $ updateOptionBits [ 1 ] [ 0 ] == "'" ) ) ? substr ( $ updateOptionBits [ 1 ] , 1 , strlen ( $ updateOptionBits [ 1 ] ) - 1 ) : $ updateOptionBits [ 1 ] ; // make sure the option being updated already exists $ currentValue = Config :: getOption ( $ updateName ) ; if ( ! $ currentValue ) { Console :: writeError ( "the --set option you provided, <info>" . $ updateName . "</info>, does not exists in the config. nothing will be updated..." ) ; } else { Config :: updateConfigOption ( $ updateName , $ updateValue ) ; Console :: writeInfo ( "config option updated..." ) ; } }
Set the given option to the given value
Set the given option to the given value