this function shouldn't raise UsageError because it can be used outside scrapy.commands