Skip to content

Commit a21c76c

Browse files
authored
Use flag for 'all'
1 parent f50ef50 commit a21c76c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Console/ExportCommand.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function __construct(Manager $manager)
3737
*/
3838
public function handle()
3939
{
40-
$group = $this->argument('group');
40+
$group = $this->option('all') ? '*' : $this->argument('group');
4141
$json = $this->option('json');
4242

4343
if (is_null($group) && !$json) {
@@ -74,7 +74,7 @@ public function handle()
7474
protected function getArguments()
7575
{
7676
return [
77-
['group', InputArgument::OPTIONAL, 'The group to export (`*` for all).'],
77+
['group', InputArgument::OPTIONAL, 'The group to export (--all for all).'],
7878
];
7979
}
8080

@@ -87,6 +87,7 @@ protected function getOptions()
8787
{
8888
return [
8989
['json', 'J', InputOption::VALUE_NONE, 'Export anonymous strings to JSON'],
90+
['all', 'A', InputOption::VALUE_NONE, 'Export all groups'],
9091
];
9192
}
9293
}

0 commit comments

Comments
 (0)