Skip to content

Commit aed7114

Browse files
authored
Merge pull request #6402 from kenjis/fix-command-usage
fix: command usages
2 parents 1fc65c2 + ec98fc9 commit aed7114

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

system/Commands/Cache/ClearCache.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class ClearCache extends BaseCommand
4646
*
4747
* @var string
4848
*/
49-
protected $usage = 'cache:clear [driver]';
49+
protected $usage = 'cache:clear [<driver>]';
5050

5151
/**
5252
* the Command's Arguments

system/Commands/Help.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class Help extends BaseCommand
4848
*
4949
* @var string
5050
*/
51-
protected $usage = 'help command_name';
51+
protected $usage = 'help [<command_name>]';
5252

5353
/**
5454
* the Command's Arguments

tests/system/CLI/CommandRunnerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public function testHelpCommand()
7979

8080
// make sure the result looks like basic help
8181
$this->assertStringContainsString('Displays basic usage information.', $result);
82-
$this->assertStringContainsString('help command_name', $result);
82+
$this->assertStringContainsString('help [<command_name>]', $result);
8383
}
8484

8585
public function testHelpCommandDetails()

0 commit comments

Comments
 (0)