î
É XŸ  ã               @   s@   d  d l  m Z m Z d  d l m Z Gd d „  d e ƒ Z d S)é    )ÚCommandÚSUCCESS)ÚCommandErrorc               @   s4   e  Z d  Z d Z d Z d Z d Z d d „  Z d S)ÚHelpCommandzShow help for commandsÚhelpz
      %prog <command>zShow help for commands.c       	      C   s²   d d l  m } m } y | d } Wn t k
 r< t SYn X| | k r” | | ƒ } d | g } | r| | j d | ƒ n  t d j | ƒ ƒ ‚ n  | | ƒ  } | j j	 ƒ  t S)Nr   )ÚcommandsÚget_similar_commandszunknown command "%s"zmaybe you meant "%s"z - )
Úpip.commandsr   r   Ú
IndexErrorr   Úappendr   ÚjoinÚparserÚ
print_help)	ÚselfÚoptionsÚargsr   r   Úcmd_nameÚguessÚmsgÚcommand© r   ú</home/ubuntu/projects/ifolica/build/pip/pip/commands/help.pyÚrun   s    	zHelpCommand.runN)Ú__name__Ú
__module__Ú__qualname__Ú__doc__ÚnameÚusageÚsummaryr   r   r   r   r   r      s
   r   N)Úpip.basecommandr   r   Úpip.exceptionsr   r   r   r   r   r   Ú<module>   s   