From 516ee314c2ac485aece78adb41ab87c9402d2550 Mon Sep 17 00:00:00 2001 From: Roland Franssen Date: Thu, 29 Sep 2016 17:55:39 +0000 Subject: [PATCH] fixed --- src/Symfony/Component/Console/Application.php | 2 +- .../Tests/Fixtures/application_run2.txt | 34 +++++++++---------- 2 files changed, 17 insertions(+), 19 deletions(-) diff --git a/src/Symfony/Component/Console/Application.php b/src/Symfony/Component/Console/Application.php index b11268ade33b..0940b3d4a770 100644 --- a/src/Symfony/Component/Console/Application.php +++ b/src/Symfony/Component/Console/Application.php @@ -172,7 +172,7 @@ public function doRun(InputInterface $input, OutputInterface $output) if (true === $input->hasParameterOption(array('--help', '-h'))) { if (!$name) { $name = 'help'; - $input = new ArrayInput(array('command' => 'help')); + $input = new ArrayInput(array('command_name' => $this->defaultCommand)); } else { $this->wantHelps = true; } diff --git a/src/Symfony/Component/Console/Tests/Fixtures/application_run2.txt b/src/Symfony/Component/Console/Tests/Fixtures/application_run2.txt index 9a42503c6b05..2e8d92e192d3 100644 --- a/src/Symfony/Component/Console/Tests/Fixtures/application_run2.txt +++ b/src/Symfony/Component/Console/Tests/Fixtures/application_run2.txt @@ -1,29 +1,27 @@ Usage: - help [options] [--] [] + list [options] [--] [] Arguments: - command The command to execute - command_name The command name [default: "help"] + namespace The namespace name Options: - --xml To output help as XML - --format=FORMAT The output format (txt, xml, json, or md) [default: "txt"] - --raw To output raw command help - -h, --help Display this help message - -q, --quiet Do not output any message - -V, --version Display this application version - --ansi Force ANSI output - --no-ansi Disable ANSI output - -n, --no-interaction Do not ask any interactive question - -v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug + --xml To output list as XML + --raw To output raw command list + --format=FORMAT The output format (txt, xml, json, or md) [default: "txt"] Help: - The help command displays help for a given command: + The list command lists all commands: - php app/console help list + php app/console list - You can also output the help in other formats by using the --format option: + You can also display the commands for a specific namespace: - php app/console help --format=xml list + php app/console list test - To display the list of available commands, please use the list command. + 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 pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy