aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/commands/runner
diff options
context:
space:
mode:
Diffstat (limited to 'railties/lib/rails/commands/runner')
-rw-r--r--railties/lib/rails/commands/runner/runner_command.rb8
1 files changed, 5 insertions, 3 deletions
diff --git a/railties/lib/rails/commands/runner/runner_command.rb b/railties/lib/rails/commands/runner/runner_command.rb
index 4989a7837d..056ad980b9 100644
--- a/railties/lib/rails/commands/runner/runner_command.rb
+++ b/railties/lib/rails/commands/runner/runner_command.rb
@@ -5,9 +5,11 @@ module Rails
default: Rails::Command.environment.dup,
desc: "The environment for the runner to operate under (test/development/production)"
- def help
- super
- puts self.class.desc
+ no_commands do
+ def help
+ super
+ puts self.class.desc
+ end
end
def self.banner(*)