class RuboCop::Server::CLI
def fetch_cache_root_path_from(arguments)
def fetch_cache_root_path_from(arguments) cache_root = arguments.detect { |argument| argument.start_with?('--cache-root') } return unless cache_root if cache_root.start_with?('--cache-root=') cache_root.split('=')[1] else arguments[arguments.index(cache_root) + 1] end end