module Rails::Command::EnvironmentArgument
def initialize(...)
def initialize(...) super @environment_specified = options[:environment].present? if !@environment_specified self.options = options.merge(environment: Rails::Command.environment) elsif !available_environments.include?(options[:environment]) self.options = options.merge(environment: expand_environment_name(options[:environment])) end end