diff options
Diffstat (limited to 'src/Script/Console.php')
-rw-r--r-- | src/Script/Console.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/Script/Console.php b/src/Script/Console.php index 3228750..ee8114e 100644 --- a/src/Script/Console.php +++ b/src/Script/Console.php @@ -46,12 +46,14 @@ class Console public function exec() { $output = new Output; + try { $input = new Input; + // Get vendor data $vendors = Vendor::loadAll($input->getOption('f')); - + // Filter data $vendors->filterByInput($input); - + // Output data $output->printCollection($vendors); } catch (Exception $e) { $output->printException($e); |