Skip to content

Commit b7592f5

Browse files
committed
Use <info> for options in command description
1 parent 72ea845 commit b7592f5

File tree

8 files changed

+17
-17
lines changed

8 files changed

+17
-17
lines changed

src/Symfony/Bridge/Monolog/Command/ServerLogCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ protected function configure(): void
6868
6969
<info>php %command.full_name%</info>
7070
71-
To filter the log messages using any ExpressionLanguage compatible expression, use the <comment>--filter</> option:
71+
To filter the log messages using any ExpressionLanguage compatible expression, use the <info>--filter</> option:
7272
7373
<info>php %command.full_name% --filter="level > 200 or channel in ['app', 'doctrine']"</info>
7474
EOF

src/Symfony/Bundle/FrameworkBundle/Command/TranslationExtractCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ protected function configure(): void
8888
the new ones into the translation files.
8989
9090
When new translation strings are found it can automatically add a prefix to the translation
91-
message. However, if the <comment>--no-fill</comment> option is used, the <comment>--prefix</comment>
91+
message. However, if the <info>--no-fill</info> option is used, the <info>--prefix</info>
9292
option has no effect, since the translation values are left empty.
9393
9494
Example running against a Bundle (AcmeBundle)
@@ -101,12 +101,12 @@ protected function configure(): void
101101
<info>php %command.full_name% --dump-messages en</info>
102102
<info>php %command.full_name% --force --prefix="new_" fr</info>
103103
104-
You can sort the output with the <comment>--sort</> flag:
104+
You can sort the output with the <info>--sort</> flag:
105105
106106
<info>php %command.full_name% --dump-messages --sort=asc en AcmeBundle</info>
107107
<info>php %command.full_name% --force --sort=desc fr</info>
108108
109-
You can dump a tree-like structure using the yaml format with <comment>--as-tree</> flag:
109+
You can dump a tree-like structure using the yaml format with <info>--as-tree</> flag:
110110
111111
<info>php %command.full_name% --force --format=yaml --as-tree=3 en AcmeBundle</info>
112112

src/Symfony/Component/Console/Command/HelpCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ protected function configure(): void
4444
4545
<info>%command.full_name% list</info>
4646
47-
You can also output the help in other formats by using the <comment>--format</comment> option:
47+
You can also output the help in other formats by using the <info>--format</info> option:
4848
4949
<info>%command.full_name% --format=xml list</info>
5050

src/Symfony/Component/Console/Command/ListCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ protected function configure(): void
4545
4646
<info>%command.full_name% test</info>
4747
48-
You can also output the information in other formats by using the <comment>--format</comment> option:
48+
You can also output the information in other formats by using the <info>--format</info> option:
4949
5050
<info>%command.full_name% --format=xml</info>
5151

src/Symfony/Component/Messenger/Command/AbstractFailedMessagesCommand.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,9 @@ protected function printPendingMessagesMessage(ReceiverInterface $receiver, Symf
146146
{
147147
if ($receiver instanceof MessageCountAwareInterface) {
148148
if (1 === $receiver->getMessageCount()) {
149-
$io->writeln('There is <comment>1</comment> message pending in the failure transport.');
149+
$io->writeln('There is <info>1</info> message pending in the failure transport.');
150150
} else {
151-
$io->writeln(\sprintf('There are <comment>%d</comment> messages pending in the failure transport.', $receiver->getMessageCount()));
151+
$io->writeln(\sprintf('There are <info>%d</info> messages pending in the failure transport.', $receiver->getMessageCount()));
152152
}
153153
}
154154
}
@@ -195,9 +195,9 @@ protected function printWarningAvailableFailureTransports(SymfonyStyle $io, ?str
195195
$failureTransportsCount = \count($failureTransports);
196196
if ($failureTransportsCount > 1) {
197197
$io->writeln([
198-
\sprintf('> Loading messages from the <comment>global</comment> failure transport <comment>%s</comment>.', $failureTransportName),
199-
'> To use a different failure transport, pass <comment>--transport=</comment>.',
200-
\sprintf('> Available failure transports are: <comment>%s</comment>', implode(', ', $failureTransports)),
198+
\sprintf('> Loading messages from the <info>global</info> failure transport <info>%s</info>.', $failureTransportName),
199+
'> To use a different failure transport, pass <info>--transport=</info>.',
200+
\sprintf('> Available failure transports are: <info>%s</info>', implode(', ', $failureTransports)),
201201
"\n",
202202
]);
203203
}

src/Symfony/Component/Translation/Command/TranslationPullCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,15 +93,15 @@ protected function configure(): void
9393
The <info>%command.name%</> command pulls translations from the given provider. Only
9494
new translations are pulled, existing ones are not overwritten.
9595
96-
You can overwrite existing translations (and remove the missing ones on local side) by using the <comment>--force</> flag:
96+
You can overwrite existing translations (and remove the missing ones on local side) by using the <info>--force</> flag:
9797
9898
<info>php %command.full_name% --force provider</>
9999
100100
Full example:
101101
102102
<info>php %command.full_name% provider --force --domains=messages --domains=validators --locales=en</>
103103
104-
This command pulls all translations associated with the <comment>messages</> and <comment>validators</> domains for the <comment>en</> locale.
104+
This command pulls all translations associated with the <info>messages</> and <info>validators</> domains for the <info>en</> locale.
105105
Local translations for the specified domains and locale are deleted if they're not present on the provider and overwritten if it's the case.
106106
Local translations for others domains and locales are ignored.
107107
EOF

src/Symfony/Component/Translation/Command/TranslationPushCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,19 +84,19 @@ protected function configure(): void
8484
The <info>%command.name%</> command pushes translations to the given provider. Only new
8585
translations are pushed, existing ones are not overwritten.
8686
87-
You can overwrite existing translations by using the <comment>--force</> flag:
87+
You can overwrite existing translations by using the <info>--force</> flag:
8888
8989
<info>php %command.full_name% --force provider</>
9090
91-
You can delete provider translations which are not present locally by using the <comment>--delete-missing</> flag:
91+
You can delete provider translations which are not present locally by using the <info>--delete-missing</> flag:
9292
9393
<info>php %command.full_name% --delete-missing provider</>
9494
9595
Full example:
9696
9797
<info>php %command.full_name% provider --force --delete-missing --domains=messages --domains=validators --locales=en</>
9898
99-
This command pushes all translations associated with the <comment>messages</> and <comment>validators</> domains for the <comment>en</> locale.
99+
This command pushes all translations associated with the <info>messages</> and <info>validators</> domains for the <info>en</> locale.
100100
Provider translations for the specified domains and locale are deleted if they're not present locally and overwritten if it's the case.
101101
Provider translations for others domains and locales are ignored.
102102
EOF

src/Symfony/Component/VarDumper/Command/ServerDumpCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ protected function configure(): void
6363
6464
<info>php %command.full_name%</info>
6565
66-
You can consult dumped data in HTML format in your browser by providing the <comment>--format=html</comment> option
66+
You can consult dumped data in HTML format in your browser by providing the <info>--format=html</info> option
6767
and redirecting the output to a file:
6868
6969
<info>php %command.full_name% --format="html" > dump.html</info>

0 commit comments

Comments
 (0)