Do not treat environment_desc
as commands
For avoid to show `environment_desc` in help.
This commit is contained in:
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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user