cli : Add more information ihow to find the class name when there is no class provided.
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@2729 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
10
cli.php
10
cli.php
@@ -153,6 +153,9 @@ class cli
|
|||||||
echo "Usage : ".$launcher;
|
echo "Usage : ".$launcher;
|
||||||
if ($this->EXPERT) echo " -expert";
|
if ($this->EXPERT) echo " -expert";
|
||||||
echo " -listmethods <class>\n";
|
echo " -listmethods <class>\n";
|
||||||
|
echo "Usage : ".$launcher;
|
||||||
|
if ($this->EXPERT) echo " -expert";
|
||||||
|
echo " -listmethodsdetails <class>\n";
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -239,7 +242,12 @@ class cli
|
|||||||
|
|
||||||
// Execution of the class->method
|
// Execution of the class->method
|
||||||
if (!isset ($argv[0]))
|
if (!isset ($argv[0]))
|
||||||
die ("No class to execute provided\n");
|
{
|
||||||
|
echo "No class to execute provided\n";
|
||||||
|
echo "Usage : $launcher -list\n";
|
||||||
|
echo "Usage : $launcher -expert -list\n";
|
||||||
|
exit;
|
||||||
|
}
|
||||||
$class = $argv[0];
|
$class = $argv[0];
|
||||||
if (! array_key_exists ($class, $classes) &&
|
if (! array_key_exists ($class, $classes) &&
|
||||||
! array_key_exists ($class, $shortClasses))
|
! array_key_exists ($class, $shortClasses))
|
||||||
|
|||||||
Reference in New Issue
Block a user