You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Command/TranslationUpdateCommand.php
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -84,14 +84,14 @@ protected function configure(): void
84
84
->setDefinition([
85
85
newInputArgument('locale', InputArgument::REQUIRED, 'The locale'),
86
86
newInputArgument('bundle', InputArgument::OPTIONAL, 'The bundle name or directory where to load the messages'),
87
-
newInputOption('prefix', null, InputOption::VALUE_OPTIONAL, 'Override the default prefix', '__'),
88
-
newInputOption('format', null, InputOption::VALUE_OPTIONAL, 'Override the default output format', 'xlf12'),
87
+
newInputOption('prefix', null, InputOption::VALUE_REQUIRED, 'Override the default prefix', '__'),
88
+
newInputOption('format', null, InputOption::VALUE_REQUIRED, 'Override the default output format', 'xlf12'),
89
89
newInputOption('dump-messages', null, InputOption::VALUE_NONE, 'Should the messages be dumped in the console'),
90
90
newInputOption('force', null, InputOption::VALUE_NONE, 'Should the extract be done'),
91
91
newInputOption('clean', null, InputOption::VALUE_NONE, 'Should clean not found messages'),
92
-
newInputOption('domain', null, InputOption::VALUE_OPTIONAL, 'Specify the domain to extract'),
92
+
newInputOption('domain', null, InputOption::VALUE_REQUIRED, 'Specify the domain to extract'),
93
93
newInputOption('sort', null, InputOption::VALUE_OPTIONAL, 'Return list of messages sorted alphabetically (only works with --dump-messages)', 'asc'),
94
-
newInputOption('as-tree', null, InputOption::VALUE_OPTIONAL, 'Dump the messages as a tree-like structure: The given value defines the level where to switch to inline YAML'),
94
+
newInputOption('as-tree', null, InputOption::VALUE_REQUIRED, 'Dump the messages as a tree-like structure: The given value defines the level where to switch to inline YAML'),
95
95
])
96
96
->setHelp(<<<'EOF'
97
97
The <info>%command.name%</info> command extracts translation strings from templates
0 commit comments