Skip to content

Commit

Permalink
Prevent parsing multiple config files due to broken backend
Browse files Browse the repository at this point in the history
  • Loading branch information
vanderhe committed Dec 8, 2023
1 parent 5aaf03b commit a0c4034
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions sktools/src/sktools/scripts/skgen.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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)


Expand Down

0 comments on commit a0c4034

Please sign in to comment.