protected function configure() { $this->addArgument('package', InputArgument::OPTIONAL, self::ARG_PACKAGE_DESC, '*'); $this->addArgument('group', InputArgument::OPTIONAL, self::ARG_GROUP_DESC, '*'); $this->addOption('publishPath', 'p', InputOption::VALUE_OPTIONAL, self::ARG_PUBLISH_PATH_DESC, getcwd()); $this->addOption('configPath', 'c', InputOption::VALUE_OPTIONAL, self::OPT_OPTIONS_PATH, getcwd()); $description = sprintf("Publishes assets, provided in .publisher.{%s}", implode(',', $this->publisherScanner->getSupportedExtensions())); $this->setDescription($description); }
/** * Configures the current command. */ protected function configure() { $extensions = $this->publisherScanner->getSupportedExtensions(); $this->addArgument('publisherType', InputArgument::OPTIONAL, 'one of supported types: ' . implode(',', $extensions), 'php'); $this->addArgument('initPath', InputArgument::OPTIONAL, 'Init path. Default path is launch path. ', getcwd()); }