public function getDefaults() {

		$output = '';
		$final  = array();
		$max    = 0;

		foreach( $this->definedShortFlags as $char => $data ) {
			$final["-{$char}"] = $data[self::DEF_USAGE];
		}

		foreach( $this->definedFlags as $flag => $data ) {
			$key         = "--{$flag}";
			$final[$key] = ($data[self::DEF_REQUIRED] ?
					"<{$data[self::DEF_TYPE]}> " :
					($data[self::DEF_TYPE] == self::TYPE_BOOL ?
						'' :
						"[{$data[self::DEF_TYPE]}] "
					)) . $data[self::DEF_USAGE];
			$max         = max($max, strlen($key));
		}

		foreach( $final as $flag => $usage ) {
			$output .= sprintf('%' . ($max + 5) . 's', $flag) . "   {$usage}" . PHP_EOL;
		}

		return $output;
	}
public function getDefaults() {

		$output = '';
		$final  = array();
		$max    = 0;

		foreach( $this->definedShortFlags as $char => $data ) {
			$final["-{$char}"] = $data[self::DEF_USAGE];
		}

		foreach( $this->definedFlags as $flag => $data ) {
			$key         = "--{$flag}";
			$final[$key] = ($data[self::DEF_REQUIRED] ?
					"<{$data[self::DEF_TYPE]}> " :
					($data[self::DEF_TYPE] == self::TYPE_BOOL ?
						'' :
						"[{$data[self::DEF_TYPE]}] "
					)) . $data[self::DEF_USAGE];
			$max         = max($max, strlen($key));
		}

		foreach( $final as $flag => $usage ) {
			$output .= sprintf('%' . ($max + 5) . 's', $flag) . "   {$usage}" . PHP_EOL;
		}

		return $output;
	}
public function getDefaults ( ) { $ output = '' ; $ final = array ( ) ; $ max = 0 ; foreach ( $ this -> definedShortFlags as $ char => $ data ) { $ final [ "-{$char}" ] = $ data [ self :: DEF_USAGE ] ; } foreach ( $ this -> definedFlags as $ flag => $ data ) { $ key = "--{$flag}" ; $ final [ $ key ] = ( $ data [ self :: DEF_REQUIRED ] ? "<{$data[self::DEF_TYPE]}> " : ( $ data [ self :: DEF_TYPE ] == self :: TYPE_BOOL ? '' : "[{$data[self::DEF_TYPE]}] " ) ) . $ data [ self :: DEF_USAGE ] ; $ max = max ( $ max , strlen ( $ key ) ) ; } foreach ( $ final as $ flag => $ usage ) { $ output .= sprintf ( '%' . ( $ max + 5 ) . 's' , $ flag ) . "   {$usage}" . PHP_EOL ; } return $ output ; }
Returns the default values of all defined command-line flags as a formatted string.

Example:

-v   Output in verbose mode
--testsuite   [string] Which test suite to run.
--bootstrap   [string] A "bootstrap" PHP file that is run before the specs.
--help   Display this help message.
--version   Display this applications version.

@return string
Returns the default values of all defined command - line flags as a formatted string .