diff --git a/dsmr_parser/__main__.py b/dsmr_parser/__main__.py index 1a127cf..24ed65d 100644 --- a/dsmr_parser/__main__.py +++ b/dsmr_parser/__main__.py @@ -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()