INNER CODE UNIT · Python

bare

ohdearquant/lionagi · lionagi/cli/main.py:247

        bare = [*(p_ns.query or []), *p_extras, *p_post]
        if not bare:
            log_error(
                "playbook NAME is required\n"
                'Usage: li play <name> "<prompt>" [--bypass --team-mode TEAM --timeout N ...]\n'
                "Flags may appear anywhere relative to NAME and the prompt."
            )
            return 1
        name = bare[0]
        # Remove NAME from the partition it was selected from, never by
        # string value across argv (an earlier flag VALUE equal to NAME
        # must not be deleted in its place).
        if p_ns.query or p_extras:
            head_tokens = list(p_head)
            head_tokens.remove(name)
            other = head_tokens + (["--", *p_post] if p_post else [])
        else:
            other = [*p_head, "--", *p_post[1:]]

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…