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:
parent
8f7196aafb
commit
fa0179f87e
1 changed files with 89 additions and 24 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue