add option to dump header and exit