Rewrite main with Cmdliner.