From 319c295bbacb9d6b66b1cb437fc2538ade89a24d Mon Sep 17 00:00:00 2001 From: "yuuji.yaginuma" Date: Sat, 13 Apr 2019 08:37:00 +0900 Subject: Do not treat `environment_desc` as commands For avoid to show `environment_desc` in help. --- railties/lib/rails/command/environment_argument.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/railties/lib/rails/command/environment_argument.rb b/railties/lib/rails/command/environment_argument.rb index 0cb3f1ce1e..9945fd1430 100644 --- a/railties/lib/rails/command/environment_argument.rb +++ b/railties/lib/rails/command/environment_argument.rb @@ -9,7 +9,9 @@ module Rails extend ActiveSupport::Concern included do - class_attribute :environment_desc, default: "Specifies the environment to run this #{self.command_name} under (test/development/production)." + no_commands do + class_attribute :environment_desc, default: "Specifies the environment to run this #{self.command_name} under (test/development/production)." + end class_option :environment, aliases: "-e", type: :string, desc: environment_desc end -- cgit v1.2.3