deps: Rename --list-deps to --show-deps
This commit is contained in:
parent
164eaffea7
commit
466cf3ba33
@ -55,6 +55,9 @@ and improved.
|
|||||||
- The command option :option:`mopidy --list-settings` is now named
|
- The command option :option:`mopidy --list-settings` is now named
|
||||||
:option:`mopidy --show-config`.
|
:option:`mopidy --show-config`.
|
||||||
|
|
||||||
|
- The command option :option:`mopidy --list-deps` is now named
|
||||||
|
:option:`mopidy --show-deps`.
|
||||||
|
|
||||||
- What configuration files to use can now be specified through the command
|
- What configuration files to use can now be specified through the command
|
||||||
option :option:`mopidy --config`.
|
option :option:`mopidy --config`.
|
||||||
|
|
||||||
|
|||||||
@ -52,9 +52,9 @@ mopidy command
|
|||||||
together to show the effective document. Secret values like passwords are
|
together to show the effective document. Secret values like passwords are
|
||||||
masked out. Config for disabled extensions are not included.
|
masked out. Config for disabled extensions are not included.
|
||||||
|
|
||||||
.. cmdoption:: --list-deps
|
.. cmdoption:: --show-deps
|
||||||
|
|
||||||
List dependencies and their versions.
|
Show dependencies, their versions and installation location.
|
||||||
|
|
||||||
.. cmdoption:: --config <file>
|
.. cmdoption:: --config <file>
|
||||||
|
|
||||||
|
|||||||
@ -27,7 +27,7 @@ with others for debugging.
|
|||||||
Installed dependencies
|
Installed dependencies
|
||||||
======================
|
======================
|
||||||
|
|
||||||
The command :option:`mopidy --list-deps` will list the paths to and versions of
|
The command :option:`mopidy --show-deps` will list the paths to and versions of
|
||||||
any dependency Mopidy or the extensions might need to work. This is very useful
|
any dependency Mopidy or the extensions might need to work. This is very useful
|
||||||
data for checking that you're using the right versions, and that you're using
|
data for checking that you're using the right versions, and that you're using
|
||||||
the right installation if you have multiple installations of a dependency on
|
the right installation if you have multiple installations of a dependency on
|
||||||
|
|||||||
@ -120,9 +120,9 @@ def parse_options():
|
|||||||
action='callback', callback=show_config_callback,
|
action='callback', callback=show_config_callback,
|
||||||
help='show current config')
|
help='show current config')
|
||||||
parser.add_option(
|
parser.add_option(
|
||||||
b'--list-deps',
|
b'--show-deps',
|
||||||
action='callback', callback=deps.list_deps_optparse_callback,
|
action='callback', callback=deps.show_deps_optparse_callback,
|
||||||
help='list dependencies and their versions')
|
help='show dependencies and their versions')
|
||||||
parser.add_option(
|
parser.add_option(
|
||||||
b'--config',
|
b'--config',
|
||||||
action='store', dest='config',
|
action='store', dest='config',
|
||||||
|
|||||||
@ -14,11 +14,11 @@ import pkg_resources
|
|||||||
from . import formatting
|
from . import formatting
|
||||||
|
|
||||||
|
|
||||||
def list_deps_optparse_callback(*args):
|
def show_deps_optparse_callback(*args):
|
||||||
"""
|
"""
|
||||||
Prints a list of all dependencies.
|
Prints a list of all dependencies.
|
||||||
|
|
||||||
Called by optparse when Mopidy is run with the :option:`--list-deps`
|
Called by optparse when Mopidy is run with the :option:`--show-deps`
|
||||||
option.
|
option.
|
||||||
"""
|
"""
|
||||||
print format_dependency_list()
|
print format_dependency_list()
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user