jp (base): add --max option:

when MULTI_ITEMS is set, --max options is automatically added, except if NO_MAX flag is set.
This commit is contained in:
Goffi 2018-03-29 08:59:38 +02:00
commit d2dadbaf46

View file

@ -168,7 +168,6 @@ class Get(base.CommandBase):
self.need_loop=True
def add_parser_options(self):
self.parser.add_argument("-m", "--max", type=int, default=10, help=_(u"maximum number of items to get ({} to get all items)".format(C.NO_LIMIT)))
# TODO: a key(s) argument to select keys to display
self.parser.add_argument("-k", "--key", type=base.unicode_decoder, action='append', dest='keys',
help=_(u"microblog data key(s) to display (default: depend of verbosity)"))