improve doc for list_pkgs

This commit is contained in:
Michael Calmer 2016-02-10 14:20:34 +01:00
parent 415654ee9e
commit e3bb862a32

View file

@ -290,9 +290,21 @@ def version(*names, **kwargs):
def list_pkgs(versions_as_list=False, **kwargs):
'''
List the packages currently installed as a dict::
List the packages currently installed as a dict with versions
as a comma separated string::
{'<package_name>': '<version>'}
{'<package_name>': '<version>[,<version>...]'}
versions_as_list:
If set to true, the versions are provided as a list
{'<package_name>': ['<version>', '<version>']}
removed:
not supported
purge_desired:
not supported
CLI Example: