rails/rails — Issue #4577: rails CLI should exit with nonzero status on error
Author: cjcsuhta
Created: 2012-01-21 17:02:52+00:00
State: open

A lot of the `rails` command line tools will exit with status 0 even if the command was unsuccessful or printed a usage message instead of doing anything. This makes it difficult for scripts using the `rails` command to detect when the command was unsuccessful.

![Example terminal ouput](http://f.cl.ly/items/0i291O2A0P2h2E2q0V00/Screen%20Shot%202012-01-21%20at%2011.50.54%20AM.png)