aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Command/ExportCommand.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Wallabag/CoreBundle/Command/ExportCommand.php')
-rw-r--r--src/Wallabag/CoreBundle/Command/ExportCommand.php4
1 files changed, 2 insertions, 2 deletions
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
23 'User from which to export entries' 23 'User from which to export entries'
24 ) 24 )
25 ->addArgument( 25 ->addArgument(
26 'filename', 26 'filepath',
27 InputArgument::OPTIONAL, 27 InputArgument::OPTIONAL,
28 'Path of the exported file' 28 'Path of the exported file'
29 ) 29 )
@@ -46,7 +46,7 @@ class ExportCommand extends ContainerAwareCommand
46 46
47 $output->write(sprintf('Exporting %d entrie(s) for user « <comment>%s</comment> »... ', count($entries), $user->getUserName())); 47 $output->write(sprintf('Exporting %d entrie(s) for user « <comment>%s</comment> »... ', count($entries), $user->getUserName()));
48 48
49 $filePath = $input->getArgument('filename'); 49 $filePath = $input->getArgument('filepath');
50 if (!$filePath) { 50 if (!$filePath) {
51 $filePath = $this->getContainer()->getParameter('kernel.root_dir') . '/../' . sprintf('%s-export', $user->getUsername()); 51 $filePath = $this->getContainer()->getParameter('kernel.root_dir') . '/../' . sprintf('%s-export', $user->getUsername());
52 } 52 }