Hackfut Security File Manager
Current Path:
/usr/lib/python2.6/site-packages/pip/commands
usr
/
lib
/
python2.6
/
site-packages
/
pip
/
commands
/
📁
..
📄
__init__.py
(1.96 KB)
📄
__init__.pyc
(2.38 KB)
📄
__init__.pyo
(2.38 KB)
📄
completion.py
(1.94 KB)
📄
completion.pyc
(2.48 KB)
📄
completion.pyo
(2.48 KB)
📄
freeze.py
(2.28 KB)
📄
freeze.pyc
(2.7 KB)
📄
freeze.pyo
(2.7 KB)
📄
help.py
(982 B)
📄
help.pyc
(1.33 KB)
📄
help.pyo
(1.33 KB)
📄
install.py
(14.04 KB)
📄
install.pyc
(9.84 KB)
📄
install.pyo
(9.84 KB)
📄
list.py
(7.08 KB)
📄
list.pyc
(6.72 KB)
📄
list.pyo
(6.72 KB)
📄
search.py
(4.5 KB)
📄
search.pyc
(5.21 KB)
📄
search.pyo
(5.21 KB)
📄
show.py
(4.86 KB)
📄
show.pyc
(5.15 KB)
📄
show.pyo
(5.15 KB)
📄
uninstall.py
(2.82 KB)
📄
uninstall.pyc
(3.03 KB)
📄
uninstall.pyo
(3.03 KB)
📄
wheel.py
(7.27 KB)
📄
wheel.pyc
(6.18 KB)
📄
wheel.pyo
(6.18 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