working with either --url or --file options.