8000 minor #13239 [2.5] Made help information of commands more consistent … · symfony/symfony@111a88c · GitHub
[go: up one dir, main page]

Skip to content

Commit 111a88c

Browse files
committed
minor #13239 [2.5] Made help information of commands more consistent (WouterJ)
This PR was merged into the 2.5 branch. Discussion ---------- [2.5] Made help information of commands more consistent Follow up of #13231 for commands added in 2.4 and 2.5 Commits ------- a450d66 Made help information consistent
2 parents cbcd0f4 + a450d66 commit 111a88c

File tree

8 files changed

+20
-19
lines changed

8 files changed

+20
-19
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,10 @@ protected function configure()
3232
$this
3333
->setName('config:debug')
3434
->setDefinition(array(
35-
new InputArgument('name', InputArgument::OPTIONAL, 'The Bundle name or the extension alias'),
35+
new InputArgument('name', InputArgument::OPTIONAL, 'The bundle name or the extension alias'),
3636
))
3737
->setDescription('Dumps the current configuration for an extension')
3838
->setHelp(<<<EOF
39-
4039
The <info>%command.name%</info> command dumps the current configuration for an
4140
extension/bundle.
4241

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ protected function configure()
4848
<info>php %command.full_name% framework</info>
4949
<info>php %command.full_name% FrameworkBundle</info>
5050
51-
With the <info>format</info> option specifies the format of the configuration,
51+
With the <info>--format</info> option specifies the format of the configuration,
5252
this is either <comment>yaml</comment> or <comment>xml</comment>.
5353
When the option is not provided, <comment>yaml</comment> is used.
5454

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ protected function configure()
6161
The <info>%command.name%</info> displays the configured routes:
6262
6363
<info>php %command.full_name%</info>
64-
64+
6565
EOF
6666
)
6767
;

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ protected function configure()
6060
The <info>%command.name%</info> shows which routes match a given request and which don't and for what reason:
6161
6262
<info>php %command.full_name% /foo</info>
63-
or
63+
64+
or
65+
6466
<info>php %command.full_name% /foo --method POST --scheme https --host symfony.com --verbose</info>
6567
6668
EOF

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,19 +54,19 @@ protected function configure()
5454
5555
You can display information about bundle translations in a specific locale:
5656
57-
<info>php %command.full_name% en AcmeDemoBundle</info>
57+
<info>php %command.full_name% en AcmeDemoBundle</info>
5858
5959
You can also specify a translation domain for the search:
6060
61-
<info>php %command.full_name% --domain=messages en AcmeDemoBundle</info>
61+
<info>php %command.full_name% --domain=messages en AcmeDemoBundle</info>
6262
6363
You can only display missing messages:
6464
65-
<info>php %command.full_name% --only-missing en AcmeDemoBundle</info>
65+
<info>php %command.full_name% --only-missing en AcmeDemoBundle</info>
6666
6767
You can only display unused messages:
6868
69-
<info>php %command.full_name% --only-unused en AcmeDemoBundle</info>
69+
<info>php %command.full_name% --only-unused en AcmeDemoBundle</info>
7070
7171
EOF
7272
)

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,20 +43,20 @@ protected function configure()
4343
4444
You can validate the syntax of a file:
4545
46-
<info>php %command.full_name% filename</info>
46+
<info>php %command.full_name% filename</info>
4747
4848
Or of a whole directory:
4949
50-
<info>php %command.full_name% dirname</info>
51-
<info>php %command.full_name% dirname --format=json</info>
50+
<info>php %command.full_name% dirname</info>
51+
<info>php %command.full_name% dirname --format=json</info>
5252
5353
Or all YAML files in a bundle:
5454
55-
<info>php %command.full_name% @AcmeDemoBundle</info>
55+
<info>php %command.full_name% @AcmeDemoBundle</info>
5656
5757
You can also pass the YAML contents from STDIN:
5858
59-
<info>cat filename | php %command.full_name%</info>
59+
<info>cat filename | php %command.full_name%</info>
6060
6161
EOF
6262
)

src/Symfony/Bundle/TwigBundle/Command/DebugCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,15 @@ protected function configure()
3737
The <info>%command.name%</info> command outputs a list of twig functions,
3838
filters, globals and tests. Output can be filtered with an optional argument.
3939
40-
<info>php %command.full_name%</info>
40+
<info>php %command.full_name%</info>
4141
4242
The command lists all functions, filters, etc.
4343
44-
<info>php %command.full_name% date</info>
44+
<info>php %command.full_name% date</info>
4545
4646
The command lists everything that contains the word date.
4747
48-
<info>php %command.full_name% --format=json</info>
48+
<info>php %command.full_name% --format=json</info>
4949
5050
The command lists everything in a machine readable json format.
5151
EOF

src/Symfony/Bundle/TwigBundle/Command/LintCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,10 @@ protected function configure()
5656
->setHelp(
5757
$this->getHelp().<<<EOF
5858
59-
6059
Or all template files in a bundle:
6160
62-
<info>php %command.full_name% @AcmeDemoBundle</info>
61+
<info>php %command.full_name% @AcmeDemoBundle</info>
62+
6363
EOF
6464
)
6565
;

0 commit comments

Comments
 (0)
0