"Dmitry Timoshkov" dmitry@codeweavers.com wrote:
I think it's a bad idea to "force" the kind of file on the command line for dumping I'd rather see winedump guess the file format based on the file header, as we do for .exe, .dll, .mdmp, .pdb, .dbg...
I thought about that, but that's definitely could be done as a separate work.
I'd go even further by introducing is_lnk(const char *fname) and similar is_emf(), is_pe(), is_le() functions as a general recognition interface in the option_table[]. Also I'd get rid the "dump" command line switch altogether and made the DUMP the default mode.