
0c@_                 @   s   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	 e	 rv d  d l
 m Z d  d l m Z Gd d	   d	 e  Z d
 S)    )absolute_import)Command)SUCCESS)CommandError)MYPY_CHECK_RUNNING)List)Valuesc               @   s.   e  Z d  Z d Z d Z d Z d d   Z d S)HelpCommandzShow help for commandsz
      %prog <command>Tc       
      C   s   d d l  m } m } m } y | d } Wn t k
 rB t SYn X| | k r | |  } d j |  g } | r | j d j |   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   formatappendr   joinparser
print_help)
selfoptionsargsr
   r   r   cmd_nameguessmsgcommand r   :/tmp/pip-build-jynh7p1z/pip/pip/_internal/commands/help.pyrun   s    	zHelpCommand.runN)__name__
__module____qualname____doc__usageZignore_require_venvr   r   r   r   r   r	      s   r	   N)
__future__r   Zpip._internal.cli.base_commandr   Zpip._internal.cli.status_codesr   Zpip._internal.exceptionsr   Zpip._internal.utils.typingr   Ztypingr   optparser   r	   r   r   r   r   <module>   s   