commandline.rst 908 B

12345678910111213141516171819202122232425262728293031
  1. Commandline tools
  2. =================
  3. The package can be used as a script using "python -mmodulegraph".
  4. This script calculates the module graph for the scripts passed
  5. on the commandline and by default prints a list of modules
  6. in the objectgraph, and their type and location.
  7. The script has a number of options to change the output:
  8. * ``-d``: Increase the debug level
  9. * ``-q``: Clear the debug level (emit minimal output)
  10. * ``-m``: The arguments are module names instead of script files
  11. * ``-x name``: Add ``name`` to the list of excludes
  12. * ``-p path``: Add ``path`` to the module search path
  13. * ``-g``: Emit a ``.dot`` file instead of a list of modules
  14. * ``-h``: Emit a ``.html`` file instead of a list of modules
  15. Deprecation warning
  16. -------------------
  17. The package also installs a command-line tool named "modulegraph",
  18. this command-line tool is deprecated and will be removed in a
  19. future version.