composer/getcomposer.org — pull request #7 by wilmoore (2012-03-08 05:20:33+00:00)
Title: Added '--install-dir=<directory>' option

- switched the option parsing to getopt
- call function 'installComposer' with $installDir param
- accept $installDir param within 'installComposer' function
- updated the "help" text

Example:
... | php -- --install-dir=bin