String arguments are not accepted if coming from a config file
gutipeon opened this issue · 2 comments
gutipeon commented
Current behavior
Passing arguments of type str
, like --rankdir
, is only possible via the command line, but not using a config file.
Expected behavior
Passing arguments of type str
, like --rankdir
, shall also be possible using the config file.
Root cause
When passing an str
argument via config file, it does not get parsed and the following error is displayed:
File "pydeps/arguments.py", line 159, in parse_args
typfn = typefns[typeval]
KeyError: 'STR'
Solution
The solution is to add STR
to the typefns
list in arguments.py
.