Extracting Code from an Arduino

Im keen to use this before I possibly 'brick' my 3D printer, but I get the error
avrdude: can't open config file "": Invalid argument

What are the contents of the file this is looking for?
-c stk500v2 is how the bootloader in MEGA2560 talks