Exemple #1
0
 /**
  * Set the description of the program/command
  * @api
  * @param	string	$desc	The description.
  * 	You can simply use "\n" to separate lines.
  *  The white spaces will be trimmed for each line.
  *  If you need indents of some lines, use heading '_'.
  * @return	Args			$this
  */
 public function desc($desc)
 {
     $this->desc = Helper::replaceHeadingUnderline(array_map("trim", explode("\n", $desc)));
     $this->_adjustLen(0, 0, 0, max(array_map("strlen", $this->desc)));
     return $this;
 }