# File lib/rhc/helpers.rb, line 115
    def deprecated(msg,short = false)
      HighLine::use_color = false if windows? # handle deprecated commands that does not start through highline

      info = " For porting and testing purposes you may switch this %s to %s by setting the DISABLE_DEPRECATED environment variable to %d.  It is not recommended to do so in a production environment as this option may be removed in future releases."

      msg << info unless short
      if RHC::Helpers.disable_deprecated?
        raise DeprecatedError.new(msg % ['an error','a warning',0])
      else
        warn "Warning: #{msg}\n" % ['a warning','an error',1]
      end
    end