diff options
author | Guillermo Iguaran <guilleiguaran@gmail.com> | 2018-03-29 11:05:47 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-29 11:05:47 -0500 |
commit | 480595e4919256ce692cb43f53ef05cb43d93cff (patch) | |
tree | e2ea880c72c1ce012a1ee2d6cbf85fb8fed65701 /railties/lib/rails/commands | |
parent | 1765f09b10483f69fd13c238db7122179d8b4e6a (diff) | |
parent | cb25f2c989588edf77f978820196b4446e01ffe8 (diff) | |
download | rails-480595e4919256ce692cb43f53ef05cb43d93cff.tar.gz rails-480595e4919256ce692cb43f53ef05cb43d93cff.tar.bz2 rails-480595e4919256ce692cb43f53ef05cb43d93cff.zip |
Merge pull request #32289 from gsamokovarov/did-you-mean-suggestions
Use `did_you_mean` spell checker for option suggestions
Diffstat (limited to 'railties/lib/rails/commands')
-rw-r--r-- | railties/lib/rails/commands/server/server_command.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails/commands/server/server_command.rb b/railties/lib/rails/commands/server/server_command.rb index 8588e2fd64..6da300e356 100644 --- a/railties/lib/rails/commands/server/server_command.rb +++ b/railties/lib/rails/commands/server/server_command.rb @@ -283,10 +283,10 @@ module Rails Run `rails server --help` for more options. MSG else - suggestions = Rails::Command::Spellchecker.suggest(server, from: RACK_SERVERS).map(&:inspect) + suggestions = Rails::Command::Spellchecker.suggest(server, from: RACK_SERVERS) <<~MSG - Could not find server "#{server}". Maybe you meant #{suggestions.first} or #{suggestions.second}? + Could not find server "#{server}". Maybe you meant #{suggestions.inspect}? Run `rails server --help` for more options. MSG end |