3 if(!isset($argv) || !$argv){
4 echo "variable argv non disponible\n";
8 $path_file = "pathes.php";
10 foreach($argv as $cmd_arg){
16 if(($k = strpos($cmd_arg, "=")) && (substr($cmd_arg, 0, $k) == "path_file")){
17 $path_file = substr($cmd_arg, $k + 1);
21 if(!$path_file || !file_exists($path_file)){
22 echo "fichier des chemins introuvable\n";
27 $PATHES["mw_dir"] .= $PATHES["mw_dir"] && substr($PATHES["mw_dir"], -1) != "/" ? "/" : "";
28 require $PATHES["mw_dir"]."mw_app.php";
30 $app = new mw_app($path_file);
32 if(($res = $app->init()) !== true){
39 if(($res = $env->run_cli($argv)) !== true){
44 debug($env->get_out());