move order choices into constant

This commit is contained in:
Sumpfork 2017-01-03 11:08:05 -08:00
parent 4cf97b303a
commit f1fda6fd75

View File

@ -26,6 +26,7 @@ EXPANSION_CHOICES = ["adventures", "alchemy", "base", "cornucopia", "dark ages",
"empires", "guilds", "hinterlands", "empires", "guilds", "hinterlands",
"intrigue1stEdition", "intrigue2ndEdition", "intrigue2ndEditionUpgrade", "intrigue1stEdition", "intrigue2ndEdition", "intrigue2ndEditionUpgrade",
"promo", "prosperity", "seaside"] "promo", "prosperity", "seaside"]
ORDER_CHOICES = ["expansion", "global", "colour", "cost"]
LANGUAGE_DEFAULT = 'en_us' # the primary language used if a language's parts are missing LANGUAGE_DEFAULT = 'en_us' # the primary language used if a language's parts are missing
LANGUAGE_XX = 'xx' # a dummy language for starting translations LANGUAGE_XX = 'xx' # a dummy language for starting translations
@ -104,7 +105,7 @@ def parse_opts(cmdline_args=None):
help="Same as --size=sleeved.") help="Same as --size=sleeved.")
group_basic.add_argument( group_basic.add_argument(
"--order", "--order",
choices=["expansion", "global", "colour", "cost"], choices=ORDER_CHOICES,
default="expansion", default="expansion",
dest="order", dest="order",
help="Sort order for the dividers: " help="Sort order for the dividers: "