VACUMM / sphinx-fortran

Fortran domain and autodoc extensions to Sphinx
Other
45 stars 29 forks source link

Fix optional arguments not declared with a o: #21

Closed dcaliste closed 4 years ago

dcaliste commented 4 years ago

Changing the 'attrspec' array in block in format_argattr(), makes the test on optional in format_argfield() to fail. No optional parameters are then declared with o:, but all with p:. This MR is fixing the issue (and not detecting optional arguments by looking at the 'depend' stuff that is added by crackfortran) and updating the references since some arguments are now declared in the optional list.