jp (base): pubsub legacy --max option renamed to --max-item to prepare the use of --max for RSM.

This commit is contained in:
Goffi 2018-12-01 10:47:59 +01:00
commit 93b23f1cc8

View file

@ -373,7 +373,7 @@ class Jp(object):
# mutiple items
pubsub_group.add_argument("-i", "--item", type=unicode_decoder, action='append', dest='items', default=[], help=_(u"items to retrieve (DEFAULT: all)"))
if not flags.no_max:
pubsub_group.add_argument("-m", "--max", type=int, default=10,
pubsub_group.add_argument("-m", "--max-items", dest="max", type=int, default=10,
help=_(u"maximum number of items to get ({no_limit} to get all items)".format(no_limit=C.NO_LIMIT)))
if not flags.all_used: