forked from codeigniter4/CodeIgniter4
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHelp.php
More file actions
48 lines (40 loc) · 990 Bytes
/
Copy pathHelp.php
File metadata and controls
48 lines (40 loc) · 990 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?php namespace CodeIgniter\Commands;
use CodeIgniter\CLI\BaseCommand;
use CodeIgniter\CLI\CLI;
/**
* CI Help command for the ci.php script.
*
* Lists the basic usage information for the ci.php script,
* and provides a way to list help for other commands.
*
* @package CodeIgniter\Commands
*/
class Help extends BaseCommand
{
protected $group = 'CodeIgniter';
/**
* The Command's name
*
* @var string
*/
protected $name = 'help';
/**
* the Command's short description
*
* @var string
*/
protected $description = 'Displays basic usage information.';
//--------------------------------------------------------------------
/**
* Displays the help for the ci.php cli script itself.
*
* @param array $params
*/
public function run(array $params)
{
CLI::write('Usage:');
CLI::write("\tcommand [arguments]");
$this->call('list');
CLI::newLine();
}
}