diff sat_frontends/jp/cmd_message.py @ 2764:92af49cde255

jp (base): MAM and RSM arguments can now be used for pubsub commands: - RSM and MAM args arguments have been added to pubsub group, and activated when multiple items are possible - /!\ --max-items (i.e. pubsub original max) short option has been change for -M, and -m is now used for RSM max - pubsub/search -m option has been renamed -M for same reason as above - pubsub/search -o option has been replaced by -k (for keep), to avoid conflict with order-by (and long version is now --node-max)
author Goffi <goffi@goffi.org>
date Fri, 11 Jan 2019 10:18:02 +0100
parents 8fd8ce5a5855
children 003b8b4b56a7
line wrap: on
line diff
--- a/sat_frontends/jp/cmd_message.py	Fri Jan 11 09:48:19 2019 +0100
+++ b/sat_frontends/jp/cmd_message.py	Fri Jan 11 10:18:02 2019 +0100
@@ -222,7 +222,7 @@
             "-W", "--with", dest="mam_with", type=base.unicode_decoder,
             help=_(u"retrieve only archives with this jid"))
         self.parser.add_argument(
-            "-M", "--max", dest="rsm_max", type=int, default=20,
+            "-m", "--max", dest="rsm_max", type=int, default=20,
             help=_(u"maximum number of items to retrieve, using RSM (default: 20))"))
 
     def _sessionInfosGetCb(self, session_info, data, metadata):