coady avatar coady committed 9f981ba

Insert help output into documentation.

Comments (0)

Files changed (2)

 
 # Add any Sphinx extension module names here, as strings. They can be extensions
 # coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
-extensions = ['sphinx.ext.autodoc', 'sphinx.ext.coverage', 'sphinx.ext.viewcode']
+extensions = ['sphinx.ext.autodoc', 'sphinx.ext.coverage', 'sphinx.ext.viewcode', 'sphinxcontrib.programoutput']
 
 # Add any paths that contain templates here, relative to this directory.
 templates_path = ['_templates']
 server
 ======
-Usage: python -m lupyne.server [index_directory ...]
-
-Options:
-  -h, --help            show this help message and exit
-  -r, --read-only       expose only read methods; no write lock
-  -c CONFIG, --config=CONFIG
-                        optional configuration file or json object of global
-                        params
-  -p FILE, --pidfile=FILE
-                        store the process id in the given file
-  -d, --daemonize       run the server as a daemon
-  --autoreload=SECONDS  automatically reload modules; replacement for
-                        engine.autoreload
-  --autoupdate=SECONDS  automatically update index version and commit any
-                        changes
-  --autosync=HOSTS
-                        automatically synchronize searcher with remote hosts
-                        and update
-  --real-time           search in real-time without committing
-
+.. program-output:: python -m lupyne.server -h
+  :cwd: ..
 .. automodule:: lupyne.server
 .. note:: Lucene doc ids are ephemeral;  only use doc ids across requests for the same index version.
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.