Skip to content

Commit

Permalink
Do not treat environment_desc as commands
Browse files Browse the repository at this point in the history
For avoid to show `environment_desc` in help.
  • Loading branch information
y-yagi committed Apr 12, 2019
1 parent f95c132 commit 319c295
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion railties/lib/rails/command/environment_argument.rb
Expand Up @@ -9,7 +9,9 @@ module EnvironmentArgument #:nodoc:
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

Expand Down

0 comments on commit 319c295

Please sign in to comment.