X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FCommand%2FExportCommand.php;h=0cf5de488fa62ee9f8312e076ab58fd4ea307122;hb=a607b7a9c0870bcdfb4b4e7920d20b5ed39f14fe;hp=9c3c3fefea4a575feb0796e84daf5156a83126bb;hpb=8303b037fb4e64b542f6f755828b999fdf6eebb0;p=github%2Fwallabag%2Fwallabag.git 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()); }