command/str

This commit is contained in:
Marc Beninca 2024-09-15 01:45:06 +02:00
parent 73c7ac00f4
commit 5038e587af
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -13,6 +13,13 @@ class Command:
self.raw = arguments self.raw = arguments
self.flat: list[str] = [] self.flat: list[str] = []
def __str__(self) -> str:
"""Return raw & flat."""
return f"""\
raw = {self.raw}
flat = {self.flat}
"""
def get_tuples_args(*items: str | tuple[str, ...]) -> list[str]: def get_tuples_args(*items: str | tuple[str, ...]) -> list[str]:
"""Turn arguments tuples into an arguments list.""" """Turn arguments tuples into an arguments list."""