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

@ -41,6 +41,7 @@ class Const(constants.Const):
NODE = u'node' # node required
SINGLE_ITEM = u'single_item' # only one item is allowed
MULTI_ITEMS = u'multi_items' # multiple items are allowed
NO_MAX = u'no_max' # don't add --max option for multi items
# ANSI
A_HEADER = A.BOLD + A.FG_YELLOW