The user experience when running the "rails" command-line tool and faced with an overwrite prompt isn't as good as it could be. I made some notes on this at:
http://wincent.com/a/about/wincent/weblog/archives/2007/10/bad_ui_design_i.php
The attached patch addresses the concerns in the following ways:
1. Provides a more user-friendly prompt when asking whether to overwrite:
overwrite README? (enter "h" for help) [Ynaqdh]
2. Add code to display the help:
Y - yes, overwrite
n - no, do not overwrite
a - all, overwrite this and all others
q - quit, abort
d - diff, show the differences between the old and the new
h - help, show this help
overwrite README? (enter "h" for help) [Ynaqdh]
3. Don't default to forcing an override when receiving an unrecognized option; instead show the help.
4. Don't use sloppy regexes.