|
@@ -85,7 +85,7 @@ class Application
|
|
|
new InputOption('--help', '-h', InputOption::VALUE_NONE, 'Display this help message.'),
|
|
|
new InputOption('--quiet', '-q', InputOption::VALUE_NONE, 'Do not output any message.'),
|
|
|
new InputOption('--verbose', '-v', InputOption::VALUE_NONE, 'Increase verbosity of messages.'),
|
|
|
- new InputOption('--version', '-V', InputOption::VALUE_NONE, 'Display this program version.'),
|
|
|
+ new InputOption('--version', '-V', InputOption::VALUE_NONE, 'Display this application version.'),
|
|
|
new InputOption('--ansi', '', InputOption::VALUE_NONE, 'Force ANSI output.'),
|
|
|
new InputOption('--no-ansi', '', InputOption::VALUE_NONE, 'Disable ANSI output.'),
|
|
|
new InputOption('--no-interaction', '-n', InputOption::VALUE_NONE, 'Do not ask any interactive question.'),
|
|
@@ -836,6 +836,14 @@ class Application
|
|
|
return sprintf('%s, %s%s', $abbrevs[0], $abbrevs[1], count($abbrevs) > 2 ? sprintf(' and %d more', count($abbrevs) - 2) : '');
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * Returns the namespace part of the command name.
|
|
|
+ *
|
|
|
+ * @param string $name The full name of the command
|
|
|
+ * @param string $limit The maximum number of parts of the namespace
|
|
|
+ *
|
|
|
+ * @return string The namespace of the command
|
|
|
+ */
|
|
|
private function extractNamespace($name, $limit = null)
|
|
|
{
|
|
|
$parts = explode(':', $name);
|