From 46d287426ffac8cbfa48254d9d424ad3120cb407 Mon Sep 17 00:00:00 2001 From: Tobias Weichart Date: Fri, 1 Oct 2021 23:36:49 +0100 Subject: [PATCH 1/2] added --v|verbose|all as command parameter as --show=all alias references https://github.com/Hi-Folks/lara-lens/issues/55 --- src/Console/LaraLensCommand.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Console/LaraLensCommand.php b/src/Console/LaraLensCommand.php index b933fa9..9aad11b 100644 --- a/src/Console/LaraLensCommand.php +++ b/src/Console/LaraLensCommand.php @@ -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)} + {--v|verbose|all : verbose output (--show=all)} '; protected $description = 'Show some application configurations.'; @@ -226,7 +227,7 @@ public function handle() $this->styleTable = self::DEFAULT_STYLE; } $columnSorting = $this->option("column-sort"); - $showOptions = $this->option("show"); + $showOptions = $this->option("verbose") ? ['all'] : $this->option("show"); if (is_array($showOptions)) { From 7c98cc0f78a9a0dd74f3cede6604c0440d4e2144 Mon Sep 17 00:00:00 2001 From: Tobias Weichart Date: Sat, 2 Oct 2021 00:01:28 +0100 Subject: [PATCH 2/2] changed shorthand to only --a|all as to not overwrite default behaviour --- src/Console/LaraLensCommand.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Console/LaraLensCommand.php b/src/Console/LaraLensCommand.php index 9aad11b..6be91bb 100644 --- a/src/Console/LaraLensCommand.php +++ b/src/Console/LaraLensCommand.php @@ -24,7 +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)} - {--v|verbose|all : verbose output (--show=all)} + {--a|all : verbose output (--show=all)} '; protected $description = 'Show some application configurations.'; @@ -227,7 +227,7 @@ public function handle() $this->styleTable = self::DEFAULT_STYLE; } $columnSorting = $this->option("column-sort"); - $showOptions = $this->option("verbose") ? ['all'] : $this->option("show"); + $showOptions = $this->option("all") ? ['all'] : $this->option("show"); if (is_array($showOptions)) {