Exemple #1
0
 private static function getRequestContainer(array $args)
 {
     $req = new RequestContainer(new Request($args));
     $req->registerParameter('file', 'The name of the pantrfile', 'f');
     $req->registerParameter('global', 'Execute a global command', 'g');
     $req->registerParameter('ignore-failure', 'If specified, the task will be executed even if some or all of its dependencies fail');
     return $req;
 }
Exemple #2
0
 public function registerOn(RequestContainer $req)
 {
     $req->registerParameter($this->long, $this->desc, $this->short, $this->required);
 }