Fix readme

This commit is contained in:
Vineet 2014-05-11 00:32:26 +05:30
parent ec6c2c6cc2
commit 7852d84b80
1 changed files with 8 additions and 8 deletions

View File

@ -77,7 +77,7 @@ Using pipdeptree to write requirements.txt file
----------------------------------------------- -----------------------------------------------
If you wish to track only the top level packages in your If you wish to track only the top level packages in your
``requirements.txt`` file, it's possible to do so using `pipdeptree` ``requirements.txt`` file, it's possible to do so using ``pipdeptree``
by grep-ing only the top-level lines from the output, by grep-ing only the top-level lines from the output,
.. code-block:: bash .. code-block:: bash
@ -94,10 +94,10 @@ by grep-ing only the top-level lines from the output,
redis==2.9.1 redis==2.9.1
There is a problem here though. The output doesn't mention anything There is a problem here though. The output doesn't mention anything
about `Lookupy` being installed as an editable package (refer to the about ``Lookupy`` being installed as an editable package (refer to the
output of `pip freeze` above) and information about it's source is output of ``pip freeze`` above) and information about it's source is
lost. To fix this, `pipdeptree` must be run with a `-f` or `--freeze` lost. To fix this, ``pipdeptree`` must be run with a ``-f`` or
flag. ``--freeze`` flag.
.. code-block:: bash .. code-block:: bash
@ -111,7 +111,7 @@ flag.
ipython==2.0.0 ipython==2.0.0
slugify==0.0.1 slugify==0.0.1
redis==2.9.1 redis==2.9.1
$ $ pipdeptree -f | grep -P '^[\w0-9\-=.]+' > requirements.txt $ $ pipdeptree -f | grep -P '^[\w0-9\-=.]+' > requirements.txt
@ -120,13 +120,13 @@ Usage
.. code-block:: bash .. code-block:: bash
$ pipdeptree -h usage: pipdeptree.py [-h] [-f] [-a] [-l]
usage: pipdeptree [-h] [-a] [-l]
Dependency tree of the installed python packages Dependency tree of the installed python packages
optional arguments: optional arguments:
-h, --help show this help message and exit -h, --help show this help message and exit
-f, --freeze Print names so as to write freeze files
-a, --all list all deps at top level -a, --all list all deps at top level
-l, --local-only If in a virtualenv that has global access donot show -l, --local-only If in a virtualenv that has global access donot show
globally installed packages globally installed packages