Rewrite CLI executable with optparse