Process actions related to events switch.

def process_events(args):
    """Process actions related to events switch."""
    client = EventsClient.from_config()
    client.set_debug(True)
    if args.get:
        response = client.get_events()
    elif args.flush:
        response = client.flush_events()
    return response