From 55d7366fd7ddacab53175b57f8725b4bbd0d5f64 Mon Sep 17 00:00:00 2001 From: Romain Neutron Date: Wed, 26 Feb 2014 13:39:41 +0100 Subject: [PATCH] Fix Xsendfile command --- .../Phrasea/Command/Setup/XSendFileMappingGenerator.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/Alchemy/Phrasea/Command/Setup/XSendFileMappingGenerator.php b/lib/Alchemy/Phrasea/Command/Setup/XSendFileMappingGenerator.php index 9610a42491..dcf3d69e04 100644 --- a/lib/Alchemy/Phrasea/Command/Setup/XSendFileMappingGenerator.php +++ b/lib/Alchemy/Phrasea/Command/Setup/XSendFileMappingGenerator.php @@ -12,6 +12,7 @@ namespace Alchemy\Phrasea\Command\Setup; use Alchemy\Phrasea\Command\Command; +use Symfony\Component\Console\Input\InputArgument; use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Output\OutputInterface; use Alchemy\Phrasea\Http\XSendFile\XSendFileFactory; @@ -25,7 +26,7 @@ class XSendFileMappingGenerator extends Command $this->addOption('write', 'w', null, 'Writes the configuration') ->addOption('enabled', 'e', null, 'Set the enable toggle to `true`') - ->addArgument('type', null, 'The configuration type, either `nginx` or `apache`') + ->addArgument('type', InputArgument::REQUIRED, 'The configuration type, either `nginx` or `apache`') ->setDescription('Generates Phraseanet xsendfile mapping configuration depending on databoxes configuration'); }