From 4e4c674c09d6658611b13c0fb3949755bac8a890 Mon Sep 17 00:00:00 2001 From: dana Date: Sun, 7 Aug 2016 09:03:05 -0500 Subject: [PATCH] Console: Fix indentation of Help: section of txt usage help --- .../Console/Descriptor/TextDescriptor.php | 2 +- .../Tests/Fixtures/application_run2.txt | 18 +++++------ .../Tests/Fixtures/application_run3.txt | 30 +++++++++---------- .../Console/Tests/Fixtures/command_1.txt | 2 +- .../Console/Tests/Fixtures/command_2.txt | 2 +- .../Console/Tests/Fixtures/command_astext.txt | 2 +- 6 files changed, 28 insertions(+), 28 deletions(-) diff --git a/src/Symfony/Component/Console/Descriptor/TextDescriptor.php b/src/Symfony/Component/Console/Descriptor/TextDescriptor.php index 64b5397167..0d722ed5aa 100644 --- a/src/Symfony/Component/Console/Descriptor/TextDescriptor.php +++ b/src/Symfony/Component/Console/Descriptor/TextDescriptor.php @@ -156,7 +156,7 @@ class TextDescriptor extends Descriptor $this->writeText("\n"); $this->writeText('Help:', $options); $this->writeText("\n"); - $this->writeText(' '.str_replace("\n", "\n ", $help), $options); + $this->writeText(' '.str_replace("\n", "\n ", $help), $options); $this->writeText("\n"); } } diff --git a/src/Symfony/Component/Console/Tests/Fixtures/application_run2.txt b/src/Symfony/Component/Console/Tests/Fixtures/application_run2.txt index d28b928ec3..9a42503c6b 100644 --- a/src/Symfony/Component/Console/Tests/Fixtures/application_run2.txt +++ b/src/Symfony/Component/Console/Tests/Fixtures/application_run2.txt @@ -18,12 +18,12 @@ Options: -v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug Help: - The help command displays help for a given command: - - php app/console help list - - You can also output the help in other formats by using the --format option: - - php app/console help --format=xml list - - To display the list of available commands, please use the list command. + The help command displays help for a given command: + + php app/console help list + + You can also output the help in other formats by using the --format option: + + php app/console help --format=xml list + + To display the list of available commands, please use the list command. diff --git a/src/Symfony/Component/Console/Tests/Fixtures/application_run3.txt b/src/Symfony/Component/Console/Tests/Fixtures/application_run3.txt index bc51995f85..2e8d92e192 100644 --- a/src/Symfony/Component/Console/Tests/Fixtures/application_run3.txt +++ b/src/Symfony/Component/Console/Tests/Fixtures/application_run3.txt @@ -10,18 +10,18 @@ Options: --format=FORMAT The output format (txt, xml, json, or md) [default: "txt"] Help: - The list command lists all commands: - - php app/console list - - You can also display the commands for a specific namespace: - - php app/console list test - - You can also output the information in other formats by using the --format option: - - php app/console list --format=xml - - It's also possible to get raw list of commands (useful for embedding command runner): - - php app/console list --raw + The list command lists all commands: + + php app/console list + + You can also display the commands for a specific namespace: + + php app/console list test + + You can also output the information in other formats by using the --format option: + + php app/console list --format=xml + + It's also possible to get raw list of commands (useful for embedding command runner): + + php app/console list --raw diff --git a/src/Symfony/Component/Console/Tests/Fixtures/command_1.txt b/src/Symfony/Component/Console/Tests/Fixtures/command_1.txt index 28e14a057a..e5e93ee093 100644 --- a/src/Symfony/Component/Console/Tests/Fixtures/command_1.txt +++ b/src/Symfony/Component/Console/Tests/Fixtures/command_1.txt @@ -4,4 +4,4 @@ alias2 Help: - command 1 help + command 1 help diff --git a/src/Symfony/Component/Console/Tests/Fixtures/command_2.txt b/src/Symfony/Component/Console/Tests/Fixtures/command_2.txt index 72f7ce0586..cad9cb45f2 100644 --- a/src/Symfony/Component/Console/Tests/Fixtures/command_2.txt +++ b/src/Symfony/Component/Console/Tests/Fixtures/command_2.txt @@ -10,4 +10,4 @@ -o, --option_name Help: - command 2 help + command 2 help diff --git a/src/Symfony/Component/Console/Tests/Fixtures/command_astext.txt b/src/Symfony/Component/Console/Tests/Fixtures/command_astext.txt index 7e20638807..4d9055d309 100644 --- a/src/Symfony/Component/Console/Tests/Fixtures/command_astext.txt +++ b/src/Symfony/Component/Console/Tests/Fixtures/command_astext.txt @@ -15,4 +15,4 @@ -v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug Help: - help + help