comparison frontends/src/jp/constants.py @ 2539:dcc77f23e370

jp (base): add --max option: when MULTI_ITEMS is set, --max options is automatically added, except if NO_MAX flag is set.
author Goffi <goffi@goffi.org>
date Thu, 29 Mar 2018 08:59:38 +0200
parents 772447ec070f
children 1d754bc14381
comparison
equal deleted inserted replaced
2538:0a22dc80d671 2539:dcc77f23e370
39 # Pubsub options flags 39 # Pubsub options flags
40 SERVICE = u'service' # service required 40 SERVICE = u'service' # service required
41 NODE = u'node' # node required 41 NODE = u'node' # node required
42 SINGLE_ITEM = u'single_item' # only one item is allowed 42 SINGLE_ITEM = u'single_item' # only one item is allowed
43 MULTI_ITEMS = u'multi_items' # multiple items are allowed 43 MULTI_ITEMS = u'multi_items' # multiple items are allowed
44 NO_MAX = u'no_max' # don't add --max option for multi items
44 45
45 # ANSI 46 # ANSI
46 A_HEADER = A.BOLD + A.FG_YELLOW 47 A_HEADER = A.BOLD + A.FG_YELLOW
47 A_SUBHEADER = A.BOLD + A.FG_RED 48 A_SUBHEADER = A.BOLD + A.FG_RED
48 # A_LEVEL_COLORS may be used to cycle on colors according to depth of data 49 # A_LEVEL_COLORS may be used to cycle on colors according to depth of data