Skip to content

Commit 3d7c4b9

Browse files
authored
Add Arguments.__str__() (#91)
1 parent 8de4fc4 commit 3d7c4b9

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/bluetooth_2_usb/args.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,18 @@ def debug(self) -> bool:
158158
def version(self) -> bool:
159159
return self._version
160160

161+
def __str__(self) -> str:
162+
return (
163+
f"Arguments(device_ids={self.device_ids}, "
164+
f"auto_discover={self.auto_discover}, "
165+
f"grab_devices={self.grab_devices}, "
166+
f"list_devices={self.list_devices}, "
167+
f"log_to_file={self.log_to_file}, "
168+
f"log_path={self.log_path}, "
169+
f"debug={self.debug}, "
170+
f"version={self.version})"
171+
)
172+
161173

162174
def parse_args() -> Arguments:
163175
parser = CustomArgumentParser(

0 commit comments

Comments
 (0)