Skip to content

Commit

Permalink
Fix --stdin, --pretty command flags
Browse files Browse the repository at this point in the history
  • Loading branch information
richardDobron committed Jun 19, 2022
1 parent 5eac4db commit 1bf06b5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bin/fbt
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ $app->registerCommand('translate', function (Minicli\Command\CommandCall $app) {
$generateTranslationsService->exportTranslations(
$app->getParam('--path'),
$app->getParam('--translations'),
$app->hasFlag('stdin') ? file_get_contents("php://stdin") : null,
$app->hasFlag('pretty')
$app->hasFlag('--stdin') ? file_get_contents("php://stdin") : null,
$app->hasFlag('--pretty')
);
});

Expand Down
2 changes: 1 addition & 1 deletion docs/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ After implementation, set `viewerContext`:
```php
$loggedUserDto = ...;

\fbt\FbtConfig::get('viewerContext', $loggedUserDto)
\fbt\FbtConfig::set('viewerContext', $loggedUserDto)
```

## 🚀 Command
Expand Down

0 comments on commit 1bf06b5

Please sign in to comment.