cocos2d/cocos2d-console — pull request #12 by luisparravicini (2014-01-28 15:34:01+00:00)
Title: Guess project dir

Most of the plugins use -s to set the project base directory. With this change, if -s is not supplied it tries to find the base project directory, starting with the current working directory and going up one level if that fails, up to '/'.

With this you can simply run "cocos2d " within any directory inside the project.