'We have --staging/--dry-run; perform sanity check and set config.server'

def set_test_server(self, parsed_args):

    if (parsed_args.server not in (flag_default('server'), constants.STAGING_URI)):
        conflicts = (['--staging'] if parsed_args.staging else [])
        conflicts += (['--dry-run'] if parsed_args.dry_run else [])
        raise errors.Error('--server    value    conflicts    with    {0}'.format('    and    '.join(conflicts)))
    parsed_args.server = constants.STAGING_URI
    if parsed_args.dry_run:
        if (self.verb not in ['certonly', 'renew']):
            raise errors.Error(("--dry-run    currently    only    works    with    the    'certonly'    or    'renew'    subcommands    (%r)" % self.verb))
        parsed_args.break_my_certs = parsed_args.staging = True
        if glob.glob(os.path.join(parsed_args.config_dir, constants.ACCOUNTS_DIR, '*')):
            parsed_args.tos = True
            parsed_args.register_unsafely_without_email = True
