diff options
| author | Chris McDonough <chrism@plope.com> | 2013-10-14 12:42:17 +0200 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2013-10-14 12:42:17 +0200 |
| commit | 6db4eb3a5fe625918c52b40ed669f1b55343abf9 (patch) | |
| tree | 18cecc84b5a0fa51af3bda74aaa19ad3e4654749 /docs/narr/commandline.rst | |
| parent | a87c1972615f98e99b06f9ea335a12104f67e6e0 (diff) | |
| download | pyramid-6db4eb3a5fe625918c52b40ed669f1b55343abf9.tar.gz pyramid-6db4eb3a5fe625918c52b40ed669f1b55343abf9.tar.bz2 pyramid-6db4eb3a5fe625918c52b40ed669f1b55343abf9.zip | |
add note about custom args to python when using command-line scripts
Diffstat (limited to 'docs/narr/commandline.rst')
| -rw-r--r-- | docs/narr/commandline.rst | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/docs/narr/commandline.rst b/docs/narr/commandline.rst index 58b9bdd21..0984b4daf 100644 --- a/docs/narr/commandline.rst +++ b/docs/narr/commandline.rst @@ -474,6 +474,17 @@ input of the ``prequest`` process is used as the ``POST`` body:: $ $VENV/bin/prequest -mPOST development.ini / < somefile +Using Custom Arguments to Python when Running ``p*`` Scripts +------------------------------------------------------------ + +.. versionadded:: 1.5 + +Each of Pyramid's console scripts (``pserve``, ``pviews``, etc) can be run +directly using ``python -m``, allowing custom arguments to be sent to the +python interpreter at runtime. For example:: + + python -3 -m pyramid.scripts.pserve development.ini + Showing All Installed Distributions and their Versions ------------------------------------------------------ |
