tilboerner / depx

Examine and visualize dependencies used by Python modules 🔍
Other
19 stars 3 forks source link

Add switch to show/hide full names #18

Closed tilboerner closed 5 years ago

tilboerner commented 5 years ago

Dependency names can optionally be truncated to just the top-level name, for example package.subpackage.module becomes package only; both from_module and to_module are affected.

The idea is to make it easy to get a high-level overview.

Adds a command-line switch --short-names, or -S to toggle showing short names only. There's also --no-short-names to explicitly force the normal long-name behavior, which remains the default.

tilboerner commented 5 years ago

@anapaulagomes Maybe I should add a test here. Probably won't have time for it today, though.

tilboerner commented 5 years ago

@anapaulagomes I fixed the typo and added a simple test to get the new code covered. I did not add a name-filtering parameter for the reasons above. I hope that's okay with you. :)