From bfe66756813c9feafc3bf0150519e0b01f8e69ad Mon Sep 17 00:00:00 2001 From: Robert Reinhard Date: Mon, 29 Jun 2015 10:20:42 -0700 Subject: [PATCH 1/2] Adding InputOption dep --- src/Bkwld/Croppa/Commands/Purge.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Bkwld/Croppa/Commands/Purge.php b/src/Bkwld/Croppa/Commands/Purge.php index e2137db..34c550d 100644 --- a/src/Bkwld/Croppa/Commands/Purge.php +++ b/src/Bkwld/Croppa/Commands/Purge.php @@ -3,6 +3,7 @@ // Deps use Bkwld\Croppa\Storage; use Illuminate\Console\Command; +use Symfony\Component\Console\Input\InputOption; /** * Delete ALL crops from the crops_dir @@ -57,7 +58,7 @@ public function fire() { */ protected function getOptions() { return [ - ['filter', null, InputArgument::REQUIRED, 'A regex pattern that whitelists matching crop paths', null], + ['filter', null, InputOption::REQUIRED, 'A regex pattern that whitelists matching crop paths', null], ['dry-run', null, InputOption::VALUE_NONE, 'Only return the crops that would be deleted', false], ]; } From 5c7d3c86fc8009a8cc5a02b339e328ff1568a964 Mon Sep 17 00:00:00 2001 From: Robert Reinhard Date: Mon, 29 Jun 2015 10:28:50 -0700 Subject: [PATCH 2/2] Fixing options config --- src/Bkwld/Croppa/Commands/Purge.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Bkwld/Croppa/Commands/Purge.php b/src/Bkwld/Croppa/Commands/Purge.php index 34c550d..ecaa671 100644 --- a/src/Bkwld/Croppa/Commands/Purge.php +++ b/src/Bkwld/Croppa/Commands/Purge.php @@ -58,8 +58,8 @@ public function fire() { */ protected function getOptions() { return [ - ['filter', null, InputOption::REQUIRED, 'A regex pattern that whitelists matching crop paths', null], - ['dry-run', null, InputOption::VALUE_NONE, 'Only return the crops that would be deleted', false], + ['filter', null, InputOption::VALUE_REQUIRED, 'A regex pattern that whitelists matching crop paths', null], + ['dry-run', null, InputOption::VALUE_NONE, 'Only return the crops that would be deleted'], ]; }