3
ûâdel  ã               @   sP   d dl mZ d dlmZ d dlmZ d dlmZ d dlm	Z	 G dd„ deƒZ
dS )	é    )ÚValues)ÚList)ÚCommand)ÚSUCCESS)ÚCommandErrorc               @   s.   e Zd ZdZdZdZeee e	dœdd„Z
dS )ÚHelpCommandzShow help for commandsz
      %prog <command>T)ÚoptionsÚargsÚreturnc       
      C   sŽ   ddl m}m}m} y|d }W n tk
r4   tS X ||krx||ƒ}d|› d�g}|rj|jd|› d�ƒ tdj|ƒƒ‚||ƒ}	|	j	j
ƒ  tS )Nr   )Úcommands_dictÚcreate_commandÚget_similar_commandszunknown command "ú"zmaybe you meant "z - )Zpip._internal.commandsr   r   r   Ú
IndexErrorr   Úappendr   ÚjoinÚparserÚ
print_help)
Úselfr   r	   r   r   r   Úcmd_nameÚguessÚmsgÚcommand© r   ú:/tmp/pip-build-red6nood/pip/pip/_internal/commands/help.pyÚrun   s    
zHelpCommand.runN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚusageZignore_require_venvr   r   ÚstrÚintr   r   r   r   r   r   	   s   r   N)Úoptparser   Útypingr   Zpip._internal.cli.base_commandr   Zpip._internal.cli.status_codesr   Zpip._internal.exceptionsr   r   r   r   r   r   Ú<module>   s
   