Skip to content

Commit 2dd0d83

Browse files
committed
cleaning up phpBin help and humanReadablePath example
1 parent 3bba570 commit 2dd0d83

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/PatternLab/Console.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,8 @@ public static function getPathPHP() {
174174

175175
if (!$path) {
176176
$configPath = Console::getHumanReadablePath(Config::getOption("configPath"));
177-
Console::writeError("please add the option `phpBin` with the path to PHP to <path>".$configPath."</path> to run this process...");
177+
$examplePHP = (DIRECTORY_SEPARATOR === "/") ? "C:\wamp\bin\php\php5.5.12" : "/opt/local/lib/php54";
178+
Console::writeError("can't find PHP. add the path to PHP by adding the option \"phpBin\" to <path>".$configPath."</path>. it should look like \"phpBin\": \"".$examplePHP."\"");
178179
}
179180

180181
return $path;
@@ -192,7 +193,7 @@ public static function getPathConsole() {
192193

193194
if (!$console) {
194195
$configPath = Console::getHumanReadablePath(Config::getOption("configPath"));
195-
Console::writeError("please add the option `phpScriptName` with the path to your console option (e.g. core/console) to <path>".$configPath."</path> to run this process...");
196+
Console::writeError("please add the option `phpScriptName` with the path to your console option (e.g. core".DIRECTORY_SEPARATOR."console) to <path>".$configPath."</path> to run this process...");
196197
}
197198

198199
return Config::getOption("baseDir").$console;
@@ -479,7 +480,7 @@ public static function getSpacer($lengthLong,$itemLongLength) {
479480
* @return {String} cleaned up path
480481
*/
481482
public static function getHumanReadablePath($path) {
482-
return str_replace(Config::getOption("baseDir"), "./", $path);
483+
return str_replace(Config::getOption("baseDir"), ".".DIRECTORY_SEPARATOR, $path);
483484
}
484485

485486
/**

0 commit comments

Comments
 (0)