I think that this can be done taking advantage of the object that handles --forms (forms parsing) switch.