parse-opts: add OPT_FILENAME and transition builtins