Skip to content

Commit

Permalink
Add manpage for mllp_send via Sphinx.
Browse files Browse the repository at this point in the history
  • Loading branch information
johnpaulett committed Dec 14, 2011
1 parent ca0eccd commit b2afedd
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/conf.py
Expand Up @@ -212,7 +212,7 @@
# One entry per manual page. List of tuples # One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section). # (source start file, name, description, authors, manual section).
man_pages = [ man_pages = [
('index', 'python-hl7', u'python-hl7 Documentation', ('mllp_send', 'mllp_send', 'MLLP network client',
[u'John Paulett'], 1) [u'John Paulett'], 1)
] ]


Expand Down
2 changes: 1 addition & 1 deletion docs/contribute.rst
Expand Up @@ -22,7 +22,7 @@ The test suite is located in :file:`tests/` and can be run via :file:`setup.py`:


Make sure the documentation is still valid:: Make sure the documentation is still valid::


$ pushd docs && make html && make doctest && popd $ pushd docs && make html man doctest && popd
... ...
Doctest summary Doctest summary
=============== ===============
Expand Down
7 changes: 5 additions & 2 deletions docs/index.rst
Expand Up @@ -132,7 +132,7 @@ MLLP network client - ``mllp_send``


python-hl7 features a simple network client, ``mllp_send``, which reads HL7 python-hl7 features a simple network client, ``mllp_send``, which reads HL7
messages from a file or ``sys.stdin`` and posts them to an MLLP server. messages from a file or ``sys.stdin`` and posts them to an MLLP server.
``mllp_send`` is a command-line wrapper around ``mllp_send`` is a command-line wrapper around
:py:class:`hl7.client.MLLPClient`. :py:class:`hl7.client.MLLPClient`.


:: ::
Expand All @@ -144,7 +144,9 @@ messages from a file or ``sys.stdin`` and posts them to an MLLP server.
-p PORT, --port=PORT port to connect to -p PORT, --port=PORT port to connect to
-f FILE, --file=FILE read from FILE instead of stdin -f FILE, --file=FILE read from FILE instead of stdin
-q, --quiet do not print status messages to stdout -q, --quiet do not print status messages to stdout

--loose allow file to be a HL7-like object (\r\n instead of
\r). Can ONLY send 1 message. Requires --file option
(no stdin)


Contents Contents
-------- --------
Expand All @@ -153,6 +155,7 @@ Contents
:maxdepth: 1 :maxdepth: 1


api api
mllp_send man page <mllp_send>
contribute contribute
changelog changelog
authors authors
Expand Down
23 changes: 23 additions & 0 deletions docs/mllp_send.rst
@@ -0,0 +1,23 @@
===================================
``mllp_send`` - MLLP network client
===================================

python-hl7 features a simple network client, ``mllp_send``, which reads HL7
messages from a file or ``sys.stdin`` and posts them to an MLLP server.
``mllp_send`` is a command-line wrapper around
:py:class:`hl7.client.MLLPClient`.

::

Usage: mllp_send [options] <server>

Options:
-h, --help show this help message and exit
-p PORT, --port=PORT port to connect to
-f FILE, --file=FILE read from FILE instead of stdin
-q, --quiet do not print status messages to stdout
--loose allow file to be a HL7-like object (\r\n instead of
\r). Can ONLY send 1 message. Requires --file option
(no stdin)

For more details, visit http://python-hl7.readthedocs.org

0 comments on commit b2afedd

Please sign in to comment.