Example #1
0
 /**
  * Add new customize option
  * We have to overload parent method AbstractCliModule::loadOptions()
  */
 protected function loadOptions()
 {
     // we still want to display default ones, right?
     parent::loadOptions();
     $this->defaultOptions[] = array('options' => array('-s', '--set-option-value'), 'callback' => 'setOption', 'description' => 'Testing my new option description');
 }
Example #2
0
 protected function loadOptions()
 {
     parent::loadOptions();
     $this->defaultOptions[] = array('options' => array('-t', '--test'), 'callback' => 'testMe', 'description' => 'Test me');
     $this->defaultOptions[] = array('options' => array('-n', '--not-exists'), 'callback' => 'notExists', 'description' => 'Test for non existing method');
 }