]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Fix option attributes 2708/head
authorJeremy Benoist <jbenoist@20minutes.fr>
Thu, 1 Jun 2017 13:44:36 +0000 (15:44 +0200)
committerJeremy Benoist <jbenoist@20minutes.fr>
Thu, 1 Jun 2017 13:44:36 +0000 (15:44 +0200)
src/Wallabag/ImportBundle/Command/ImportCommand.php

index 0829a1da34ace2cc135fd75b2d742faf0bacafc6..5f1ab0af018cdf5620ab87f754cf4f24388dbc62 100644 (file)
@@ -18,9 +18,9 @@ class ImportCommand extends ContainerAwareCommand
             ->setDescription('Import entries from a JSON export')
             ->addArgument('username', InputArgument::REQUIRED, 'User to populate')
             ->addArgument('filepath', InputArgument::REQUIRED, 'Path to the JSON file')
-            ->addOption('importer', null, InputArgument::OPTIONAL, 'The importer to use: v1, v2, instapaper, pinboard, readability, firefox or chrome', 'v1')
-            ->addOption('markAsRead', null, InputArgument::OPTIONAL, 'Mark all entries as read', false)
-            ->addOption('useUserId', null, InputArgument::OPTIONAL, 'Use user id instead of username to find account', false)
+            ->addOption('importer', null, InputOption::VALUE_OPTIONAL, 'The importer to use: v1, v2, instapaper, pinboard, readability, firefox or chrome', 'v1')
+            ->addOption('markAsRead', null, InputOption::VALUE_OPTIONAL, 'Mark all entries as read', false)
+            ->addOption('useUserId', null, InputOption::VALUE_NONE, 'Use user id instead of username to find account')
             ->addOption('disableContentUpdate', null, InputOption::VALUE_NONE, 'Disable fetching updated content from URL')
         ;
     }