Nicer way of getting ranges file as argument