clean-up re-format
This commit is contained in:
parent
007b3ea089
commit
8b8b952ce1
@ -10,20 +10,15 @@ def console():
|
||||
"""Output DSMR data to console."""
|
||||
|
||||
parser = argparse.ArgumentParser(description=console.__doc__)
|
||||
parser.add_argument(
|
||||
"--device", default="/dev/ttyUSB0", help="port to read DSMR data from"
|
||||
)
|
||||
parser.add_argument(
|
||||
"--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(
|
||||
"--version",
|
||||
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")
|
||||
parser.add_argument('--device', default='/dev/ttyUSB0',
|
||||
help='port to read DSMR data from')
|
||||
parser.add_argument('--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('--version', 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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user