mirror of
https://github.com/python/cpython.git
synced 2025-09-27 18:59:43 +00:00
Make help messages in packaging.run more consistent
This commit is contained in:
parent
2ef747cb77
commit
18efecf30a
1 changed files with 6 additions and 7 deletions
|
@ -34,14 +34,14 @@ create_usage = """\
|
||||||
Usage: pysetup create
|
Usage: pysetup create
|
||||||
or: pysetup create --help
|
or: pysetup create --help
|
||||||
|
|
||||||
Create a new Python package.
|
Create a new Python project.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
generate_usage = """\
|
generate_usage = """\
|
||||||
Usage: pysetup generate-setup
|
Usage: pysetup generate-setup
|
||||||
or: pysetup generate-setup --help
|
or: pysetup generate-setup --help
|
||||||
|
|
||||||
Generates a setup.py script for backward-compatibility purposes.
|
Generate a setup.py script for backward-compatibility purposes.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
@ -95,7 +95,7 @@ positional arguments:
|
||||||
dist installed distribution name
|
dist installed distribution name
|
||||||
|
|
||||||
optional arguments:
|
optional arguments:
|
||||||
-y auto confirm package removal
|
-y auto confirm distribution removal
|
||||||
"""
|
"""
|
||||||
|
|
||||||
run_usage = """\
|
run_usage = """\
|
||||||
|
@ -217,7 +217,6 @@ def _generate(distpatcher, args, **kw):
|
||||||
print('The setup.py was generated')
|
print('The setup.py was generated')
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@action_help(graph_usage)
|
@action_help(graph_usage)
|
||||||
def _graph(dispatcher, args, **kw):
|
def _graph(dispatcher, args, **kw):
|
||||||
name = args[1]
|
name = args[1]
|
||||||
|
@ -392,10 +391,10 @@ actions = [
|
||||||
('install', 'Install a project', _install),
|
('install', 'Install a project', _install),
|
||||||
('remove', 'Remove a project', _remove),
|
('remove', 'Remove a project', _remove),
|
||||||
('search', 'Search for a project in the indexes', _search),
|
('search', 'Search for a project in the indexes', _search),
|
||||||
('list', 'Search for local projects', _list),
|
('list', 'List installed releases', _list),
|
||||||
('graph', 'Display a graph', _graph),
|
('graph', 'Display a graph', _graph),
|
||||||
('create', 'Create a Project', _create),
|
('create', 'Create a project', _create),
|
||||||
('generate-setup', 'Generates a backward-comptatible setup.py', _generate)
|
('generate-setup', 'Generate a backward-comptatible setup.py', _generate),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue