From 37b440430b93d316c67896120d5f63299def58b6 Mon Sep 17 00:00:00 2001 From: Tammo van der Heide Date: Thu, 16 Nov 2023 16:38:15 +0100 Subject: [PATCH] Prevent parsing multiple config files due to broken backend --- sktools/src/sktools/scripts/skgen.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sktools/src/sktools/scripts/skgen.py b/sktools/src/sktools/scripts/skgen.py index c9adcb30..5d22a852 100644 --- a/sktools/src/sktools/scripts/skgen.py +++ b/sktools/src/sktools/scripts/skgen.py @@ -168,9 +168,9 @@ def setup_parser_main(parser): help='directory to include in the search for calculation ' '(default: build directory only)') parser.add_argument( - '-c', '--config-file', action='append', dest='configfiles', - default=['skdef.hsd',], - help='config file(s) to be parsed (default: ./skdef.hsd)' + '-c', '--config-file', default='skdef.hsd', dest='configfiles', + metavar='CONFIGFILE', + help='config file to be parsed (default: ./skdef.hsd)' ) parser.add_argument( '-b', '--build-dir', default='_build', dest='builddir', @@ -241,6 +241,7 @@ def setup_parser_sktable(subparsers, twocnt_common, target_function): def parse_command_line_and_run_subcommand(parser, cmdlineargs=None): args = parser.parse_args(args=cmdlineargs) + args.configfiles = [args.configfiles,] args.func(args)