ó
´¼÷Xc           @@  sP   d  d l  m Z d  d l m Z m Z d  d l m Z d e f d „  ƒ  YZ d S(   i    (   t   absolute_import(   t   Commandt   SUCCESS(   t   CommandErrort   HelpCommandc           B@  s)   e  Z d  Z d Z d Z d Z d „  Z RS(   s   Show help for commandst   helps   
      %prog <command>s   Show help for commands.c   	      C@  s®   d d l  m } m } y | d } Wn t k
 r8 t SX| | k r | | ƒ } d | g } | rx | j d | ƒ n  t d j | ƒ ƒ ‚ n  | | ƒ  } | j j	 ƒ  t S(   Ni    (   t   commands_dictt   get_similar_commandss   unknown command "%s"s   maybe you meant "%s"s    - (
   t   pip.commandsR   R   t
   IndexErrorR   t   appendR   t   joint   parsert
   print_help(	   t   selft   optionst   argsR   R   t   cmd_namet   guesst   msgt   command(    (    s.   /tmp/pip-build-g7Urym/pip/pip/commands/help.pyt   run   s    (   t   __name__t
   __module__t   __doc__t   namet   usaget   summaryR   (    (    (    s.   /tmp/pip-build-g7Urym/pip/pip/commands/help.pyR      s
   N(   t
   __future__R    t   pip.basecommandR   R   t   pip.exceptionsR   R   (    (    (    s.   /tmp/pip-build-g7Urym/pip/pip/commands/help.pyt   <module>   s   