You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
644 B

4 years ago
  1. #!/home/alpcentaur/ProjektA/PrototypeWebApp/venv/bin/python3.5
  2. # Author:
  3. # Contact: grubert@users.sf.net
  4. # Copyright: This module has been placed in the public domain.
  5. """
  6. man.py
  7. ======
  8. This module provides a simple command line interface that uses the
  9. man page writer to output from ReStructuredText source.
  10. """
  11. import locale
  12. try:
  13. locale.setlocale(locale.LC_ALL, '')
  14. except:
  15. pass
  16. from docutils.core import publish_cmdline, default_description
  17. from docutils.writers import manpage
  18. description = ("Generates plain unix manual documents. " + default_description)
  19. publish_cmdline(writer=manpage.Writer(), description=description)