From b403cb41ea0479b66418c552b99d69a9e5779772 Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Mon, 23 May 2016 19:15:25 +0000 Subject: [PATCH] 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 --- cli.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/cli.php b/cli.php index a08946c..efdf6fd 100644 --- a/cli.php +++ b/cli.php @@ -153,6 +153,9 @@ class cli echo "Usage : ".$launcher; if ($this->EXPERT) echo " -expert"; echo " -listmethods \n"; + echo "Usage : ".$launcher; + if ($this->EXPERT) echo " -expert"; + echo " -listmethodsdetails \n"; exit; } @@ -239,7 +242,12 @@ class cli // Execution of the class->method 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]; if (! array_key_exists ($class, $classes) && ! array_key_exists ($class, $shortClasses))