diff --git a/cake/console/console_input_argument.php b/cake/console/console_input_argument.php index 43393c54013..67046611ca8 100644 --- a/cake/console/console_input_argument.php +++ b/cake/console/console_input_argument.php @@ -90,6 +90,7 @@ public function usage() { if (!empty($this->_choices)) { $name = implode('|', $this->_choices); } + $name = '<' . $name . '>'; if (!$this->isRequired()) { $name = '[' . $name . ']'; } diff --git a/cake/tests/cases/console/console_option_parser.test.php b/cake/tests/cases/console/console_option_parser.test.php index 8bdbffcbbbb..9f907242a33 100644 --- a/cake/tests/cases/console/console_option_parser.test.php +++ b/cake/tests/cases/console/console_option_parser.test.php @@ -407,7 +407,7 @@ function testHelpWithOptionsAndArguments() { $result = $parser->help(); $expected = <<Usage: -cake mycommand [-h] [--test] model [other_longer] +cake mycommand [-h] [--test] [] Options: @@ -455,7 +455,7 @@ function testHelpWithChoices() { $result = $parser->help(); $expected = <<Usage: -cake mycommand [-h] [--test one|two] aco|aro [other_longer] +cake mycommand [-h] [--test one|two] [] Options: @@ -488,7 +488,7 @@ function testHelpDescriptionAndEpilog() { Description text Usage: -cake mycommand [-h] [--test] model +cake mycommand [-h] [--test] Options: