X7ROOT File Manager
Current Path:
/lib/python3.6/site-packages/pip/commands
lib
/
python3.6
/
site-packages
/
pip
/
commands
/
ðŸ“
..
📄
__init__.py
(2.19 KB)
ðŸ“
__pycache__
📄
check.py
(1.35 KB)
📄
completion.py
(2.4 KB)
📄
download.py
(7.63 KB)
📄
freeze.py
(2.77 KB)
📄
hash.py
(1.56 KB)
📄
help.py
(982 B)
📄
install.py
(17.86 KB)
📄
list.py
(11.1 KB)
📄
search.py
(4.4 KB)
📄
show.py
(5.75 KB)
📄
uninstall.py
(2.82 KB)
📄
wheel.py
(7.55 KB)
Editing: help.py
from __future__ import absolute_import from pip.basecommand import Command, SUCCESS from pip.exceptions import CommandError class HelpCommand(Command): """Show help for commands""" name = 'help' usage = """ %prog <command>""" summary = 'Show help for commands.' def run(self, options, args): from pip.commands import commands_dict, get_similar_commands try: # 'pip help' with no args is handled by pip.__init__.parseopt() cmd_name = args[0] # the command we need help for except IndexError: return SUCCESS if cmd_name not in commands_dict: guess = get_similar_commands(cmd_name) msg = ['unknown command "%s"' % cmd_name] if guess: msg.append('maybe you meant "%s"' % guess) raise CommandError(' - '.join(msg)) command = commands_dict[cmd_name]() command.parser.print_help() return SUCCESS
Upload File
Create Folder