diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2019-04-13 08:37:00 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2019-04-13 08:41:37 +0900 |
commit | 319c295bbacb9d6b66b1cb437fc2538ade89a24d (patch) | |
tree | 546bf31c42529eae0d57c1d3ca619607706277f0 /railties | |
parent | f95c132ef73ea1f0f361108f68b4a89040588b12 (diff) | |
download | rails-319c295bbacb9d6b66b1cb437fc2538ade89a24d.tar.gz rails-319c295bbacb9d6b66b1cb437fc2538ade89a24d.tar.bz2 rails-319c295bbacb9d6b66b1cb437fc2538ade89a24d.zip |
Do not treat `environment_desc` as commands
For avoid to show `environment_desc` in help.
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/command/environment_argument.rb | 4 |
1 files changed, 3 insertions, 1 deletions
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 |