Skip to content

Proposal for add_item #381

@dg-pb

Description

@dg-pb

It sometimes takes a lot of command calls to construct 1 item. Wouldn't it be convenient if the method looked more like:

def add_item(self, label, *s):
        self.append(Command("item", options=label))
        self.extend(s)

I could issue a PR if this makes sense.
Doesn't break backwards compatibility.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions