diff --git a/configurations/importer.py b/configurations/importer.py index 66cff61..1dad4d7 100644 --- a/configurations/importer.py +++ b/configurations/importer.py @@ -37,9 +37,10 @@ def install(check_options=False): if isinstance(parser, OptionParser): # in case the option_list is set the create_parser # will actually return a OptionParser for backward - # compatibility. It uses BaseCommand.use_argparse - # to decide that, which checks for the option_list list - base.BaseCommand.option_list += configuration_options + # compatibility. In that case we should tack our + # options on to the end of the parser on the way out. + for option in configuration_options: + parser.add_option(option) else: # probably argparse, let's not import argparse though parser.add_argument(CONFIGURATION_ARGUMENT,