Fixing typos
This commit is contained in:
parent
a75d24aeb0
commit
7806a44238
|
@ -50,7 +50,7 @@ class TaskmanTask
|
||||||
|
|
||||||
function __construct(\Closure $func, $name, $props = array())
|
function __construct(\Closure $func, $name, $props = array())
|
||||||
{
|
{
|
||||||
$refl = new ReflectionFunction($func);
|
$refl = new \ReflectionFunction($func);
|
||||||
$this->file = $refl->getFileName();
|
$this->file = $refl->getFileName();
|
||||||
$this->line = $refl->getStartLine();
|
$this->line = $refl->getStartLine();
|
||||||
|
|
||||||
|
@ -476,6 +476,7 @@ function _get_hints($task)
|
||||||
return $found;
|
return $found;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//e.g: run,build,zip
|
||||||
function _parse_taskstr($str)
|
function _parse_taskstr($str)
|
||||||
{
|
{
|
||||||
$task_spec = array();
|
$task_spec = array();
|
||||||
|
@ -604,7 +605,7 @@ function main($argv = array(), $help_func = null, $proc_argv = true)
|
||||||
if(sizeof($argv) > 0)
|
if(sizeof($argv) > 0)
|
||||||
{
|
{
|
||||||
$task_str = array_shift($argv);
|
$task_str = array_shift($argv);
|
||||||
$tasks = _taskman_parse_taskstr($task_str);
|
$tasks = _parse_taskstr($task_str);
|
||||||
|
|
||||||
if(count($tasks) == 1 && !_isset_task($tasks[0]))
|
if(count($tasks) == 1 && !_isset_task($tasks[0]))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue