Skip to content

Commit

Permalink
Merge pull request #57 from tweichart/55-add_verbose_option
Browse files Browse the repository at this point in the history
added --a|all as command parameter as --show=all alias
  • Loading branch information
roberto-butti authored Oct 2, 2021
2 parents 25647ba + 7c98cc0 commit 7187162
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Console/LaraLensCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class LaraLensCommand extends Command
{--width-value=' . self::DEFAULT_WIDTH . ' : width of column for value}
{--style=' . self::DEFAULT_STYLE . ' : style for output table (' . self::TABLE_STYLES . ')}
{--skip-database : skip database check (if your laravel app doesn\'t need Database)}
{--a|all : verbose output (--show=all)}
';

protected $description = 'Show some application configurations.';
Expand Down Expand Up @@ -226,7 +227,7 @@ public function handle()
$this->styleTable = self::DEFAULT_STYLE;
}
$columnSorting = $this->option("column-sort");
$showOptions = $this->option("show");
$showOptions = $this->option("all") ? ['all'] : $this->option("show");


if (is_array($showOptions)) {
Expand Down

0 comments on commit 7187162

Please sign in to comment.