Skip to content

disambiguate Main modules #28

@bergey

Description

@bergey

I'm using graphmod on several packages that define multiple executables, each module implicitly named Main. graphmod does a fine job when each executable has an explicit (unique) module declaration, or when there is only one Main. With multiple Mains, I'm not getting edges drawn for any of them.

Would you add a feature to better handle multiple Main modules?

I have a few ideas of what this might look like:

  • when encountering multiple Mains, automatically substitute file name
  • same as above, but only with a command line option
  • same as above, but prepend file name, like filename:Main
  • same as above, only for files without explicit module declaration

Any of these would meet my needs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions