tmb: setup argument parsing and logging