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)
This commit is contained in:
Goffi 2019-01-11 10:18:02 +01:00
commit fa0179f87e

View file

@ -222,7 +222,7 @@ class MAM(base.CommandBase):
"-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):