From a607b7a9c0870bcdfb4b4e7920d20b5ed39f14fe Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Sun, 22 Jan 2017 13:19:46 +0100 Subject: add filepath test Signed-off-by: Thomas Citharel --- src/Wallabag/CoreBundle/Command/ExportCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/Wallabag/CoreBundle/Command/ExportCommand.php b/src/Wallabag/CoreBundle/Command/ExportCommand.php index 9c3c3fef..0cf5de48 100644 --- a/src/Wallabag/CoreBundle/Command/ExportCommand.php +++ b/src/Wallabag/CoreBundle/Command/ExportCommand.php @@ -23,7 +23,7 @@ class ExportCommand extends ContainerAwareCommand 'User from which to export entries' ) ->addArgument( - 'filename', + 'filepath', InputArgument::OPTIONAL, 'Path of the exported file' ) @@ -46,7 +46,7 @@ class ExportCommand extends ContainerAwareCommand $output->write(sprintf('Exporting %d entrie(s) for user « %s »... ', count($entries), $user->getUserName())); - $filePath = $input->getArgument('filename'); + $filePath = $input->getArgument('filepath'); if (!$filePath) { $filePath = $this->getContainer()->getParameter('kernel.root_dir') . '/../' . sprintf('%s-export', $user->getUsername()); } -- cgit v1.2.3