renames to camelcase

This commit is contained in:
jygaulier
2012-05-07 11:34:47 +02:00
parent ddb33090c0
commit 0e03c28f48

View File

@@ -29,7 +29,16 @@ class module_console_schedulerState extends Command
{
parent::__construct($name);
$this->setDescription('Get scheduler state');
$this->setDescription('Get scheduler status');
$this->addOption(
'short'
, NULL
, InputOption::VALUE_NONE
, 'print short result, ie: <info>stopped</info> | <info>started(12345)</info> | <info>stopping</info>'
, NULL
);
// $this->setHelp("");
return $this;
}
@@ -37,7 +46,7 @@ class module_console_schedulerState extends Command
public function execute(InputInterface $input, OutputInterface $output)
{
if ( ! setup::is_installed()) {
$output->writeln('Phraseanet is not set up');
$output->writeln($input->getOption('short') ? 'setup_error' : 'Phraseanet is not set up');
return 1;
}