Small refactor to arg parsing code
Add printproto command for archive headers