setName('deploy') ->setDescription('Deploys the list of repositories.') ->addOption( 'file', 'f', InputOption::VALUE_OPTIONAL, 'The configuration file to load.', 'git-deploy.json' ) ; } protected function execute(InputInterface $input, OutputInterface $output) { $deploy = GitDeploy::fromFile($input->getOption('file')); $deploy->deploy(); } }