'constructor useable for subprocesses.'

@classmethod
def fromdictargs(cls, option_dict, args):

    config = get_config()
    config.option.__dict__.update(option_dict)
    config.parse(args, addopts=False)
    for x in config.option.plugins:
        config.pluginmanager.consider_pluginarg(x)
    return config
