Rewrite cli with minimist