Fortran-FOSS-Programmers / ford

Automatically generates FORtran Documentation from comments within the code.
https://forddocs.readthedocs.io
GNU General Public License v3.0
405 stars 131 forks source link

--external_link option broken after redesign of external project handling #601

Closed haraldkl closed 9 months ago

haraldkl commented 9 months ago

The command line option --external_links https://github.com/Fortran-FOSS-Programmers/ford/blob/141b80aa92f63555d2040909ed1cbe69e65aa2d3/ford/__init__.py#L264 overwrites the external member of the project, and isn't processed with the new alias infrastructure for the markdown processor. This results in load_external_modules to fail with:

    for url in project.external.values():
AttributeError: 'list' object has no attribute 'values'

It works as expected before the redesign. Would it be possible to process the project.external with the new alias mechanism after the command line options have been parsed?

haraldkl commented 9 months ago

Would it be OK to run _parse_to_dict https://github.com/Fortran-FOSS-Programmers/ford/blob/42d7b8fa6bb8f72baddbff72ac480460724a551d/ford/settings.py#L309 on the command-line argument?