def execute(conf, args, help):
    """
    Call an action and print its output, or print a help message.
    """
    if 'func' in args:
        for line in args['func'](conf, args):
            if line is not None:
                print(line)
    else:
        print(help)
