ó
äq^c           @@  sZ   d  d l  m Z d  d l m Z d  d l m Z d  d l m Z d e f d     YZ d S(   i    (   t   absolute_import(   t   Command(   t   SUCCESS(   t   CommandErrort   HelpCommandc           B@  s#   e  Z d  Z d Z e Z d   Z RS(   s   Show help for commandss   
      %prog <command>c   
      C@  sł   d d l  m } m } m } y | d } Wn t k
 r> t SX| | k r | |  } d | g } | r~ | j d |  n  t d j |    n  | |  }	 |	 j	 j
   t S(   Ni    (   t   commands_dictt   create_commandt   get_similar_commandss   unknown command "%s"s   maybe you meant "%s"s    - (   t   pip._internal.commandsR   R   R   t
   IndexErrorR   t   appendR   t   joint   parsert
   print_help(
   t   selft   optionst   argsR   R   R   t   cmd_namet   guesst   msgt   command(    (    s8   /tmp/pip-build-aSgKnK/pip/pip/_internal/commands/help.pyt   run   s    (   t   __name__t
   __module__t   __doc__t   usaget   Truet   ignore_require_venvR   (    (    (    s8   /tmp/pip-build-aSgKnK/pip/pip/_internal/commands/help.pyR      s   N(	   t
   __future__R    t   pip._internal.cli.base_commandR   t   pip._internal.cli.status_codesR   t   pip._internal.exceptionsR   R   (    (    (    s8   /tmp/pip-build-aSgKnK/pip/pip/_internal/commands/help.pyt   <module>   s   