Skip to content

Commit

Permalink
Reduce complexity of main run function
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveDesmond-ca committed Nov 28, 2024
1 parent b040326 commit 3bc7b81
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace ecoAPM\LibYear;

use cli\Table;
use Garden\Cli\Args;
use Garden\Cli\Cli;
use Exception;

Expand Down Expand Up @@ -52,6 +53,11 @@ public function run(array $args): bool
return true;
}

return $this->runWithParsedArguments($arguments);
}

private function runWithParsedArguments(Args $arguments): bool
{
$quiet_mode = $arguments->getOpt('quiet') !== null;
$update_mode = $arguments->getOpt('update') !== null;
$verbose_mode = $arguments->getOpt('verbose') !== null;
Expand Down

0 comments on commit 3bc7b81

Please sign in to comment.