示例#1
0
文件: Command.php 项目: badges/poser
 protected function configure()
 {
     $this->init();
     $this->setName('generate')->setDescription('Create a badge you are a Poser.')->addArgument('subject', InputArgument::OPTIONAL, 'The subject eg. `license`')->addArgument('status', InputArgument::OPTIONAL, 'The status example `MIT`')->addArgument('color', InputArgument::OPTIONAL, 'The hexadecimal color eg. `97CA00` or the name [' . join(', ', Badge::getColorNamesAvailable()) . ']')->addOption('format', 'f', InputOption::VALUE_REQUIRED, 'The format of the image eg. `svg`, formats available [' . join(', ', $this->poser->validFormats()) . ']')->addOption('path', 'p', InputOption::VALUE_REQUIRED, 'The path of the file to save the create eg. `/tmp/license.svg`');
 }