Command line tool for changing screen resolution on a Mac

Just saw this tool:

https://github.com/jhford/screenresolution

Seems potentially useful. I believe it only allows you to change to "valid" modes (i.e., those your card/monitor says are OK), so it doesn't do everything that SwitchResX does. Still, it's command line and has support for 10.6 & 10.7, and it seems pretty decent. I thought it might be useful to some people here using PTB on OS X.