示例#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;
 }
示例#2
0
文件: Option.php 项目: pago/pantr
 public function registerOn(RequestContainer $req)
 {
     $req->registerParameter($this->long, $this->desc, $this->short, $this->required);
 }