public function addArgument($argument, $details = null, $example = null, $required = false)
	{
		if (!$this->hasArgumentsSection)
		{
			$this->addSection('Arguments');
			$this->hasArgumentsSection = true;
		}

		$this->addLine(
			$argument . (($required) ? ' (*required)' : ''),
			array(
				'color'       => (($required) ? 'red' : 'blue'),
				'indentation' => 2
			)
		);

		if (isset($details))
		{
			$this->addParagraph(
				$details,
				array(
					'indentation' => 4
				)
			);

			if (!isset($example))
			{
				$this->addSpacer();
			}
		}
		if (isset($example))
		{
			$this->addLine(
				$example,
				array(
					'color'       => 'green',
					'indentation' => 4
				)
			)
			->addSpacer();
		}

		return $this;
	}
public function addArgument($argument, $details = null, $example = null, $required = false)
	{
		if (!$this->hasArgumentsSection)
		{
			$this->addSection('Arguments');
			$this->hasArgumentsSection = true;
		}

		$this->addLine(
			$argument . (($required) ? ' (*required)' : ''),
			array(
				'color'       => (($required) ? 'red' : 'blue'),
				'indentation' => 2
			)
		);

		if (isset($details))
		{
			$this->addParagraph(
				$details,
				array(
					'indentation' => 4
				)
			);

			if (!isset($example))
			{
				$this->addSpacer();
			}
		}
		if (isset($example))
		{
			$this->addLine(
				$example,
				array(
					'color'       => 'green',
					'indentation' => 4
				)
			)
			->addSpacer();
		}

		return $this;
	}
public function addArgument ( $ argument , $ details = null , $ example = null , $ required = false ) { if ( ! $ this -> hasArgumentsSection ) { $ this -> addSection ( 'Arguments' ) ; $ this -> hasArgumentsSection = true ; } $ this -> addLine ( $ argument . ( ( $ required ) ? ' (*required)' : '' ) , array ( 'color' => ( ( $ required ) ? 'red' : 'blue' ) , 'indentation' => 2 ) ) ; if ( isset ( $ details ) ) { $ this -> addParagraph ( $ details , array ( 'indentation' => 4 ) ) ; if ( ! isset ( $ example ) ) { $ this -> addSpacer ( ) ; } } if ( isset ( $ example ) ) { $ this -> addLine ( $ example , array ( 'color' => 'green' , 'indentation' => 4 ) ) -> addSpacer ( ) ; } return $ this ; }
Add an argument entry to the help doc

This is helpful in unifying styles used for help doc

@param   string  $argument  Actual argument
@param   string  $details   Description of what it does
@param   string  $example   Usage example
@param   string  $required  If it's required, we'll style a bit differently
@return  $this
Add an argument entry to the help doc