aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/version_test.rb
diff options
context:
space:
mode:
authorKasper Timm Hansen <kaspth@gmail.com>2018-07-07 09:33:11 +0200
committerKasper Timm Hansen <kaspth@gmail.com>2018-07-07 09:33:11 +0200
commitb773318f5acbb41c549724ba0a9f5e32cd05aff8 (patch)
tree098be69bb533dbdf8c350a4cea11a87b15c4d34e /railties/test/version_test.rb
parenta0061d2389a178b093f0d3f64f58236ffbe088e0 (diff)
downloadrails-b773318f5acbb41c549724ba0a9f5e32cd05aff8.tar.gz
rails-b773318f5acbb41c549724ba0a9f5e32cd05aff8.tar.bz2
rails-b773318f5acbb41c549724ba0a9f5e32cd05aff8.zip
Use only snake cased symbols in commands.
Mixing strings and symbols seems aesthetically less than ideal. We can also use underscores just fine. Thor converts them to dashes for the CLI and it makes access in Ruby code nicer. Here's the `server --help` output after this change: ``` Usage: rails server [thin/puma/webrick] [options] Options: -p, [--port=port] # Runs Rails on the specified port - defaults to 3000. -b, [--binding=IP] # Binds Rails to the specified IP - defaults to 'localhost' in development and '0.0.0.0' in other environments'. -c, [--config=file] # Uses a custom rackup configuration. # Default: config.ru -d, [--daemon], [--no-daemon] # Runs server as a Daemon. -e, [--environment=name] # Specifies the environment to run this server under (development/test/production). -u, [--using=name] # Specifies the Rack server used to run the application (thin/puma/webrick). -P, [--pid=PID] # Specifies the PID file. # Default: tmp/pids/server.pid -C, [--dev-caching], [--no-dev-caching] # Specifies whether to perform caching in development. [--early-hints], [--no-early-hints] # Enables HTTP/2 early hints. ``` See? Quite dashing ✨
Diffstat (limited to 'railties/test/version_test.rb')
0 files changed, 0 insertions, 0 deletions