Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal for add_item #381

Open
dg-pb opened this issue Feb 10, 2024 · 0 comments
Open

Proposal for add_item #381

dg-pb opened this issue Feb 10, 2024 · 0 comments

Comments

@dg-pb
Copy link
Contributor

dg-pb commented Feb 10, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant