From d6735db364c395871d50ec38e8bb67f0b1372746 Mon Sep 17 00:00:00 2001 From: Sebastian Goscik Date: Wed, 21 Sep 2016 15:39:34 +0100 Subject: [PATCH] init_argument_parser: Changed action for `-c` to append WA2 only supported a single config file but the way WA3's configuration parser works there can be as many and the user needs. They will be prioritied in the order they are specified. e.g in `wa run agenda.yaml -c 1.yaml -c 2.yaml` `1.yaml` will be applied first and `2.yaml` will be applied on top of that. --- wlauto/core/command.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wlauto/core/command.py b/wlauto/core/command.py index c2e83c78..bad6b615 100644 --- a/wlauto/core/command.py +++ b/wlauto/core/command.py @@ -21,7 +21,7 @@ from wlauto.core.version import get_wa_version def init_argument_parser(parser): - parser.add_argument('-c', '--config', help='specify an additional config.py') + parser.add_argument('-c', '--config', help='specify an additional config.py', action='append') parser.add_argument('-v', '--verbose', action='count', help='The scripts will produce verbose output.') parser.add_argument('--version', action='version', version='%(prog)s {}'.format(get_wa_version()))