bundle exec rails server を実行したのに rails new 扱いされた

↓みたいな構成で root 直下の Gemfile には rails だけ入れてある

$ gem install bundler
$ bundle install --path vendor/bundle
$ bundle exec rails new rails_project
root
  |
  |- docker
  |    |
  |    |- docker-compose.yml
  |
  |- Gemfile
  |- vendor/bundle
  |
  |- rails_project
         |
         |- Gemfile
         |- vendor/bundle

root 直下で rails server のオプション確認しようとしたら何故か rails new のヘルプが出た

$ bundle exec rails server --help
Usage:
  rails new APP_PATH [options]

どうやら rails プロジェクト内にいないといけないらしい。

$ cd rails_project
$ bundle exec rails server --help
Usage:
  rails server [puma, thin etc] [options]

解決したけど new じゃなくてエラーにしてくれればいいのに、と思った。

参考