Cosmetics : remove spaces at the end of lines and correct lines with more than 80 chars
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@1643 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
12
cli.php
12
cli.php
@@ -6,7 +6,7 @@
|
||||
/** Allow to interract with controllers and models from the CLI */
|
||||
class cli
|
||||
{
|
||||
/** Run in CLI mode with parameters
|
||||
/** Run in CLI mode with parameters
|
||||
Example of cli code :
|
||||
#!/usr/bin/php5
|
||||
<?php
|
||||
@@ -29,11 +29,13 @@ class cli
|
||||
echo " $launcher -listmethods <class> : \n";
|
||||
echo " display the methods available the controller class\n";
|
||||
echo " $launcher -expert -listmethods <class> :\n";
|
||||
echo " display the methods available the model or controller class\n";
|
||||
echo " display the methods available the model or controller class".
|
||||
"\n";
|
||||
echo " $launcher -listmethodsdetails <class> : \n";
|
||||
echo " display the methods available the controller class\n";
|
||||
echo " $launcher -expert -listmethodsdetails <class> :\n";
|
||||
echo " display the methods available the model or controller class\n";
|
||||
echo " display the methods available the model or controller class".
|
||||
"\n";
|
||||
echo " $launcher <class> <method> [args]\n";
|
||||
echo " execute the method with the provided args\n";
|
||||
echo " $launcher -expert <class> <method> [args]\n";
|
||||
@@ -66,7 +68,6 @@ class cli
|
||||
// Lists the classes available in controllers and models if expert mode
|
||||
echo "List of classes available :\n";
|
||||
echo " ".implode ("\n ", $classes)."\n";
|
||||
|
||||
echo "Usage : ".$launcher;
|
||||
if ($EXPERT) echo " -expert";
|
||||
echo " -listmethods <class>\n";
|
||||
@@ -131,7 +132,7 @@ class cli
|
||||
else
|
||||
echo ">";
|
||||
}
|
||||
|
||||
|
||||
if ($argv[0] === "-listmethodsdetails")
|
||||
{
|
||||
echo "\n";
|
||||
@@ -166,7 +167,6 @@ class cli
|
||||
$found = TRUE;
|
||||
break;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if ($found === FALSE)
|
||||
|
||||
Reference in New Issue
Block a user