Skip to content

Commit

Permalink
Add Arguments.__str__() (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
quaxalber authored Dec 13, 2023
1 parent 8de4fc4 commit 3d7c4b9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/bluetooth_2_usb/args.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,18 @@ def debug(self) -> bool:
def version(self) -> bool:
return self._version

def __str__(self) -> str:
return (
f"Arguments(device_ids={self.device_ids}, "
f"auto_discover={self.auto_discover}, "
f"grab_devices={self.grab_devices}, "
f"list_devices={self.list_devices}, "
f"log_to_file={self.log_to_file}, "
f"log_path={self.log_path}, "
f"debug={self.debug}, "
f"version={self.version})"
)


def parse_args() -> Arguments:
parser = CustomArgumentParser(
Expand Down

0 comments on commit 3d7c4b9

Please sign in to comment.