Console: Fix indentation of Help: section of txt usage help
This commit is contained in:
parent
454b16db88
commit
4e4c674c09
@ -156,7 +156,7 @@ class TextDescriptor extends Descriptor
|
|||||||
$this->writeText("\n");
|
$this->writeText("\n");
|
||||||
$this->writeText('<comment>Help:</comment>', $options);
|
$this->writeText('<comment>Help:</comment>', $options);
|
||||||
$this->writeText("\n");
|
$this->writeText("\n");
|
||||||
$this->writeText(' '.str_replace("\n", "\n ", $help), $options);
|
$this->writeText(' '.str_replace("\n", "\n ", $help), $options);
|
||||||
$this->writeText("\n");
|
$this->writeText("\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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
|
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
|
||||||
|
|
||||||
Help:
|
Help:
|
||||||
The help command displays help for a given command:
|
The help command displays help for a given command:
|
||||||
|
|
||||||
php app/console help list
|
php app/console help list
|
||||||
|
|
||||||
You can also output the help in other formats by using the --format option:
|
You can also output the help in other formats by using the --format option:
|
||||||
|
|
||||||
php app/console help --format=xml list
|
php app/console help --format=xml list
|
||||||
|
|
||||||
To display the list of available commands, please use the list command.
|
To display the list of available commands, please use the list command.
|
||||||
|
@ -10,18 +10,18 @@ Options:
|
|||||||
--format=FORMAT The output format (txt, xml, json, or md) [default: "txt"]
|
--format=FORMAT The output format (txt, xml, json, or md) [default: "txt"]
|
||||||
|
|
||||||
Help:
|
Help:
|
||||||
The list command lists all commands:
|
The list command lists all commands:
|
||||||
|
|
||||||
php app/console list
|
php app/console list
|
||||||
|
|
||||||
You can also display the commands for a specific namespace:
|
You can also display the commands for a specific namespace:
|
||||||
|
|
||||||
php app/console list test
|
php app/console list test
|
||||||
|
|
||||||
You can also output the information in other formats by using the --format option:
|
You can also output the information in other formats by using the --format option:
|
||||||
|
|
||||||
php app/console list --format=xml
|
php app/console list --format=xml
|
||||||
|
|
||||||
It's also possible to get raw list of commands (useful for embedding command runner):
|
It's also possible to get raw list of commands (useful for embedding command runner):
|
||||||
|
|
||||||
php app/console list --raw
|
php app/console list --raw
|
||||||
|
@ -4,4 +4,4 @@
|
|||||||
alias2
|
alias2
|
||||||
|
|
||||||
<comment>Help:</comment>
|
<comment>Help:</comment>
|
||||||
command 1 help
|
command 1 help
|
||||||
|
@ -10,4 +10,4 @@
|
|||||||
<info>-o, --option_name</info>
|
<info>-o, --option_name</info>
|
||||||
|
|
||||||
<comment>Help:</comment>
|
<comment>Help:</comment>
|
||||||
command 2 help
|
command 2 help
|
||||||
|
@ -15,4 +15,4 @@
|
|||||||
<info>-v|vv|vvv, --verbose</info> Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
|
<info>-v|vv|vvv, --verbose</info> Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
|
||||||
|
|
||||||
<comment>Help:</comment>
|
<comment>Help:</comment>
|
||||||
help
|
help
|
||||||
|
Reference in New Issue
Block a user