diff sat_frontends/jp/base.py @ 2706:bad70aa70c87

jp (base): pubsub legacy --max option renamed to --max-item to prepare the use of --max for RSM.
author Goffi <goffi@goffi.org>
date Sat, 01 Dec 2018 10:47:59 +0100
parents 0bb811aaf11d
children 4b693ea24d5f
line wrap: on
line diff
--- a/sat_frontends/jp/base.py	Sat Dec 01 10:42:25 2018 +0100
+++ b/sat_frontends/jp/base.py	Sat Dec 01 10:47:59 2018 +0100
@@ -373,7 +373,7 @@
             # 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: