Debian Codegraph @

tools/rst2man.py

raw symbols SCIP
1 #!/usr/bin/env python3
2
3 # Author:
4 # Contact: [email protected]
5 # Copyright: This module has been placed in the public domain.
6
7 """
8 man.py
9 ======
10
11 This module provides a simple command line interface that uses the
12 man page writer to output from ReStructuredText source.
13 """
14
15 import locale
16 try:
17 locale.setlocale(locale.LC_ALL, '')
18 except Exception:
19 pass
20
21 from docutils.core import publish_cmdline, default_description
22 from docutils.writers import manpage
23
24 description = ("Generates plain unix manual documents. "
25 + default_description)
26
27 publish_cmdline(writer=manpage.Writer(), description=description)