Mercurial > libervia-backend
comparison sat_frontends/jp/cmd_roster.py @ 3411:f30b238d9c45
jp: follow best practices and use a dash (`-`) instead of underscore (`_`) for long options.
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 12 Nov 2020 14:53:16 +0100 |
parents | 012e89fb2dd1 |
children | ffe7a6d6018a |
comparison
equal
deleted
inserted
replaced
3410:55f9a38864af | 3411:f30b238d9c45 |
---|---|
198 host, 'purge', | 198 host, 'purge', |
199 help=_('purge the roster from its contacts with no subscription')) | 199 help=_('purge the roster from its contacts with no subscription')) |
200 | 200 |
201 def add_parser_options(self): | 201 def add_parser_options(self): |
202 self.parser.add_argument( | 202 self.parser.add_argument( |
203 "--no_from", action="store_true", | 203 "--no-from", action="store_true", |
204 help=_("also purge contacts with no 'from' subscription")) | 204 help=_("also purge contacts with no 'from' subscription")) |
205 self.parser.add_argument( | 205 self.parser.add_argument( |
206 "--no_to", action="store_true", | 206 "--no-to", action="store_true", |
207 help=_("also purge contacts with no 'to' subscription")) | 207 help=_("also purge contacts with no 'to' subscription")) |
208 | 208 |
209 async def start(self): | 209 async def start(self): |
210 try: | 210 try: |
211 contacts = await self.host.bridge.getContacts(self.host.profile) | 211 contacts = await self.host.bridge.getContacts(self.host.profile) |