

@mud_action('help')
def help_action(source, args, **_):
    if (not args):
        source.display_line('Available actions:')
        action_verbs = defaultdict(list)
        for (verb, action) in _mud_actions.items():
            action_verbs[action].append(' '.join(list(verb)))
        verb_lists = ['/'.join(verbs) for verbs in verb_lists.values()]
        return source.display_line(', '.join(sorted(verb_lists)))
    action = _mud_actions.get(args, None)
    if (not action):
        raise ActionError('No matching command found')
    return getattr(action, 'help_text', 'No help available.')

dataset/ETHPy150Open genzgd/Lampost-Mud/lampost/mud/action.py help_action/VarMisuse@89/117 `action_verbs`->`verb_lists`