mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-08 12:32:42 +00:00
Changing name of parser attribute.
This commit is contained in:
parent
f1ee46749b
commit
c0d15a420c
1 changed files with 10 additions and 3 deletions
|
@ -37,6 +37,13 @@ class Shell extends Object {
|
|||
*/
|
||||
public $Dispatch = null;
|
||||
|
||||
/**
|
||||
* An instance of ConsoleOptionParser that has been configured for this class.
|
||||
*
|
||||
* @var ConsoleOptionParser
|
||||
*/
|
||||
public $OptionParser;
|
||||
|
||||
/**
|
||||
* If true, the script will ask for permission to perform actions.
|
||||
*
|
||||
|
@ -345,10 +352,10 @@ class Shell extends Object {
|
|||
return $this->{$command}->runCommand('execute', $argv);
|
||||
}
|
||||
|
||||
$this->parser = $this->_getOptionParser();
|
||||
list($this->params, $this->args) = $this->parser->parse($argv);
|
||||
$this->OptionParser = $this->_getOptionParser();
|
||||
list($this->params, $this->args) = $this->OptionParser->parse($argv);
|
||||
if (isset($this->params['help'])) {
|
||||
return $this->out($this->parser->help());
|
||||
return $this->out($this->OptionParser->help());
|
||||
}
|
||||
|
||||
if ($isMethod) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue