示例#1
0
 protected function configure()
 {
     parent::configure();
     $this->addOption('ssh-identity-file', 'i', InputOption::VALUE_REQUIRED, 'The ssh identity file to use.')->addOption('ssh-user', 'u', InputOption::VALUE_REQUIRED, 'The ssh user to use.')->addOption('ssh-password', 'p', InputOption::VALUE_REQUIRED, 'The ssh password to use.');
 }
示例#2
0
 protected function configure()
 {
     parent::configure();
     $this->setName('my-command')->setDescription('My new Command')->addArgument('name', InputArgument::OPTIONAL, 'Who do you want to greet?')->addOption('yell', null, InputOption::VALUE_NONE, 'If set, the task will yell in uppercase letters');
 }