Mercurial > libervia-backend
comparison libervia/cli/cmd_uri.py @ 4270:0d7bb4df2343
Reformatted code base using black.
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 19 Jun 2024 18:44:57 +0200 |
parents | 47401850dec6 |
children |
comparison
equal
deleted
inserted
replaced
4269:64a85ce8be70 | 4270:0d7bb4df2343 |
---|---|
36 use_output=C.OUTPUT_DICT, | 36 use_output=C.OUTPUT_DICT, |
37 help=_("parse URI"), | 37 help=_("parse URI"), |
38 ) | 38 ) |
39 | 39 |
40 def add_parser_options(self): | 40 def add_parser_options(self): |
41 self.parser.add_argument( | 41 self.parser.add_argument("uri", help=_("XMPP URI to parse")) |
42 "uri", help=_("XMPP URI to parse") | |
43 ) | |
44 | 42 |
45 async def start(self): | 43 async def start(self): |
46 await self.output(uri.parse_xmpp_uri(self.args.uri)) | 44 await self.output(uri.parse_xmpp_uri(self.args.uri)) |
47 self.host.quit() | 45 self.host.quit() |
48 | 46 |