index errors when cli options incorrect