public static function setCommandOption($command,$long,$desc,$sample,$short = "",$extra = "") {
		if (($short != "") && ($short != "z") && (strpos(self::$optionsShort,$short) === false)) {
			self::$optionsShort .= $short;
		}
		if (!in_array($long,self::$optionsLong)) {
			self::$optionsLong[] = $long;
		}
		$short = str_replace(":","",$short);
		$long  = str_replace(":","",$long);
		if ($short == "z") {
			$short = "z".self::$zTracker;
			self::$zTracker++;
		}
		self::$commands[$command]["commandOptions"][$long] = array("optionShort" => $short, "optionLong" => $long, "optionLongLength" => strlen($long), "optionDesc" => $desc, "optionSample" => $sample, "optionExtra" => $extra);
	}
public static function setCommandOption($command,$long,$desc,$sample,$short = "",$extra = "") {
		if (($short != "") && ($short != "z") && (strpos(self::$optionsShort,$short) === false)) {
			self::$optionsShort .= $short;
		}
		if (!in_array($long,self::$optionsLong)) {
			self::$optionsLong[] = $long;
		}
		$short = str_replace(":","",$short);
		$long  = str_replace(":","",$long);
		if ($short == "z") {
			$short = "z".self::$zTracker;
			self::$zTracker++;
		}
		self::$commands[$command]["commandOptions"][$long] = array("optionShort" => $short, "optionLong" => $long, "optionLongLength" => strlen($long), "optionDesc" => $desc, "optionSample" => $sample, "optionExtra" => $extra);
	}
public static function setCommandOption ( $ command , $ long , $ desc , $ sample , $ short = "" , $ extra = "" ) { if ( ( $ short != "" ) && ( $ short != "z" ) && ( strpos ( self :: $ optionsShort , $ short ) === false ) ) { self :: $ optionsShort .= $ short ; } if ( ! in_array ( $ long , self :: $ optionsLong ) ) { self :: $ optionsLong [ ] = $ long ; } $ short = str_replace ( ":" , "" , $ short ) ; $ long = str_replace ( ":" , "" , $ long ) ; if ( $ short == "z" ) { $ short = "z" . self :: $ zTracker ; self :: $ zTracker ++ ; } self :: $ commands [ $ command ] [ "commandOptions" ] [ $ long ] = array ( "optionShort" => $ short , "optionLong" => $ long , "optionLongLength" => strlen ( $ long ) , "optionDesc" => $ desc , "optionSample" => $ sample , "optionExtra" => $ extra ) ; }
Set-up an option for a given command so it can be used from the command line
@param  {String}       the long version of the command that this option is related to
@param  {String}       the long version of the option
@param  {String}       the description to be used in the "available options" section of writeHelpCommand()
@param  {String}       the sample to be used in the "sample" section of writeHelpCommand()
@param  {String}       the single character version of the option
@param  {String}       the extra info to be used in the example command for the "sample" section of writeHelpCommand()
Set - up an option for a given command so it can be used from the command line