diff libervia/cli/cmd_message.py @ 4327:554a87ae17a6

plugin XEP-0048, XEP-0402; CLI (bookmarks): implement XEP-0402 (PEP Native Bookmarks): - Former bookmarks implementation is now labeled as "legacy". - XEP-0402 is now used for bookmarks when relevant namespaces are found, and it fallbacks to legacy XEP-0048/XEP-0049 bookmarks otherwise. - CLI legacy bookmark commands have been moved to `bookmarks legacy` - CLI bookmarks commands now use the new XEP-0402 (with fallback to legacy one automatically used if necessary).
author Goffi <goffi@goffi.org>
date Wed, 20 Nov 2024 11:43:27 +0100
parents 1795bfcc38e7
children
line wrap: on
line diff
--- a/libervia/cli/cmd_message.py	Wed Nov 20 11:38:44 2024 +0100
+++ b/libervia/cli/cmd_message.py	Wed Nov 20 11:43:27 2024 +0100
@@ -116,7 +116,7 @@
         addressing_group = self.parser.add_argument_group(
             "addressing commands",
             description="Commands to add addressing metadata, and/or to send message to "
-            "multiple recipients."
+            "multiple recipients.",
         )
         for arg_name in RECIPIENTS_ARGS:
             addressing_group.add_argument(
@@ -125,7 +125,7 @@
                 action="append",
                 metavar=("JID", "DESCRIPTION"),
                 help=f'extra "{arg_name.upper()}" recipient(s), may be used several '
-                'times',
+                "times",
             )
         for arg_name in REPLY_ARGS:
             addressing_group.add_argument(
@@ -133,13 +133,12 @@
                 nargs="+",
                 action="append",
                 metavar=("JID", "DESCRIPTION"),
-                help=f'ask to reply to this JID, may be used several '
-                'times',
+                help=f"ask to reply to this JID, may be used several times",
             )
         addressing_group.add_argument(
             "--no-reply",
             action="store_true",
-            help="flag this message as not requiring replies"
+            help="flag this message as not requiring replies",
         )
         syntax = self.parser.add_mutually_exclusive_group()
         syntax.add_argument("-x", "--xhtml", action="store_true", help=_("XHTML body"))