__main__.py 348 B

1234567891011121314151617
  1. """
  2. pygments.__main__
  3. ~~~~~~~~~~~~~~~~~
  4. Main entry point for ``python -m pygments``.
  5. :copyright: Copyright 2006-2024 by the Pygments team, see AUTHORS.
  6. :license: BSD, see LICENSE for details.
  7. """
  8. import sys
  9. import pygments.cmdline
  10. try:
  11. sys.exit(pygments.cmdline.main(sys.argv))
  12. except KeyboardInterrupt:
  13. sys.exit(1)