Use all modules when using --only
rmchurch opened this issue · comments
I am using the --only keyword to specify specific procedures to include, but looking through f90wrap script, I see that only the modules which correspond to those procedures are kept. Seems reasonable, but I have a module which has definitions in it, no procedures, that I want to include, but it gets kicked out of kept_mods
. Many of the procedures I specify in --only
pull in this module with use
, but for some reason the module isn't added back into kept_mods
with the find_referenced_modules
. Is there a better way to specify to keep this module in the wrapping? As a workaround I am manually debugging f90wrap, and adding in the missing module to kept_mods
, which of course is less than ideal.
I don't think there's a workaround for this problem at the moment. Perhaps we could add a --keep
option to explicitly add some modules back in, or generalise --only
to allow entire module names to be included? A PR that did either of these would be welcome.