PHP 8.2.30
Preview: help.py Size: 927 B
//opt/alt/python34/lib/python3.4/site-packages/pip/commands/help.py

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, 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:
            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[cmd_name]()
        command.parser.print_help()

        return SUCCESS

Directory Contents

Dirs: 1 × Files: 13

Name Size Perms Modified Actions
- drwxr-xr-x 2024-03-03 22:37:25
Edit Download
1.75 KB lrw-r--r-- 2023-11-13 21:20:25
Edit Download
1.79 KB lrw-r--r-- 2023-11-13 21:20:25
Edit Download
4.55 KB lrw-r--r-- 2023-11-13 21:20:25
Edit Download
927 B lrw-r--r-- 2023-11-13 21:20:25
Edit Download
13.46 KB lrw-r--r-- 2023-11-13 21:20:25
Edit Download
6.65 KB lrw-r--r-- 2023-11-13 21:20:25
Edit Download
4.63 KB lrw-r--r-- 2023-11-13 21:20:25
Edit Download
2.70 KB lrw-r--r-- 2023-11-13 21:20:25
Edit Download
2.15 KB lrw-r--r-- 2023-11-13 21:20:25
Edit Download
185 B lrw-r--r-- 2023-11-13 21:20:25
Edit Download
7.53 KB lrw-r--r-- 2023-11-13 21:20:25
Edit Download
14.47 KB lrw-r--r-- 2023-11-13 21:20:25
Edit Download
2.18 KB lrw-r--r-- 2023-11-13 21:20:25
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).