Do not treat environment_desc as commands

For avoid to show `environment_desc` in help.
This commit is contained in:
yuuji.yaginuma 2019-04-13 08:37:00 +09:00
parent f95c132ef7
commit 319c295bba

@ -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