From f1fda6fd7528a368eef3ebaab132abe7a94816af Mon Sep 17 00:00:00 2001 From: Sumpfork Date: Tue, 3 Jan 2017 11:08:05 -0800 Subject: [PATCH] move order choices into constant --- domdiv/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/domdiv/main.py b/domdiv/main.py index d3e1d53..5ae61f3 100644 --- a/domdiv/main.py +++ b/domdiv/main.py @@ -26,6 +26,7 @@ EXPANSION_CHOICES = ["adventures", "alchemy", "base", "cornucopia", "dark ages", "empires", "guilds", "hinterlands", "intrigue1stEdition", "intrigue2ndEdition", "intrigue2ndEditionUpgrade", "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_XX = 'xx' # a dummy language for starting translations @@ -104,7 +105,7 @@ def parse_opts(cmdline_args=None): help="Same as --size=sleeved.") group_basic.add_argument( "--order", - choices=["expansion", "global", "colour", "cost"], + choices=ORDER_CHOICES, default="expansion", dest="order", help="Sort order for the dividers: "