ESP8266, esptool throwing error "argument operation: invalid choice"

esptool: error: argument operation: invalid choice: 'C:\\Users\\Jimmy\\.platformio\\packages\\framework-arduinoespressif8266\\bootloaders\\eboot\\eboot.elf' (choose from 'load_r
am', 'dump_mem', 'read_mem', 'write_mem', 'write_flash', 'run', 'image_info', 'make_image', 'elf2image', 'read_mac', 'chip_id', 'flash_id', 'read_flash_status', 'write_flash_sta
tus', 'read_flash', 'verify_flash', 'erase_flash', 'erase_region', 'version')

I get this error which implies that Platformio isn’t giving the last argument of elf2image prior to giving the elf path.