This project is archived and is in readonly mode.

#6431 ✓resolved
Jeff Kreeftmeijer

Thor LoadError message should not output --dev twice

Reported by Jeff Kreeftmeijer | February 14th, 2011 @ 06:51 PM | in 3.x

When running the app generator without Thor available, it prints out an error message telling you you should have Thor and you should append --dev to the command:

If you ran this command from a git checkout of Rails, please make sure thor is installed,
and run this command as `ruby source/bin/rails ticket_6427 --dev`

If you're already appending --dev, it'll tell you to to run the command with --dev --dev:

If you ran this command from a git checkout of Rails, please make sure thor is installed,
and run this command as `ruby source/bin/rails ticket_6427 --dev --dev`

This was because the error message simply appended "--dev" to anything. I've attached a patch that only adds it when you're not already doing it.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Attachments

Tags

Referenced by

Pages