clean-up re-format

This commit is contained in:
Gunnar Klauberg 2021-11-12 17:38:16 +00:00
parent 007b3ea089
commit 8b8b952ce1

View File

@ -10,20 +10,15 @@ def console():
"""Output DSMR data to console.""" """Output DSMR data to console."""
parser = argparse.ArgumentParser(description=console.__doc__) parser = argparse.ArgumentParser(description=console.__doc__)
parser.add_argument( parser.add_argument('--device', default='/dev/ttyUSB0',
"--device", default="/dev/ttyUSB0", help="port to read DSMR data from" help='port to read DSMR data from')
) parser.add_argument('--host', default=None,
parser.add_argument( help='alternatively connect using TCP host.')
"--host", default=None, help="alternatively connect using TCP host." parser.add_argument('--port', default=None,
) help='TCP port to use for connection')
parser.add_argument("--port", default=None, help="TCP port to use for connection") parser.add_argument('--version', default='2.2', choices=['2.2', '4', '5', '5B', '5L', '5S', 'Q3D'],
parser.add_argument( help='DSMR version (2.2, 4, 5, 5B, 5L, 5S, Q3D)')
"--version", parser.add_argument('--verbose', '-v', action='count')
default="2.2",
choices=["2.2", "4", "5", "5B", "5L", "5S", "Q3D"],
help="DSMR version (2.2, 4, 5, 5B, 5L, 5S, Q3D)",
)
parser.add_argument("--verbose", "-v", action="count")
args = parser.parse_args() args = parser.parse_args()