ó

\c           @   s@   d  d l  m Z m Z d  d l m Z d e f d     YZ d S(   i˙˙˙˙(   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	 j
   t S(   Ni˙˙˙˙(   t   commandst   get_similar_commandsi    s   unknown command "%s"s   maybe you meant "%s"s    - (   t   pip.commandsR   R   t
   IndexErrorR   t   appendR   t   joint   main_parsert   parsert
   print_help(	   t   selft   optionst   argsR   R   t   cmd_namet   guesst   msgt   command(    (    sX   /data/av2000/b2b/venv/lib/python2.7/site-packages/pip-1.3-py2.7.egg/pip/commands/help.pyt   run   s    (   t   __name__t
   __module__t   __doc__t   namet   usaget   summaryR   (    (    (    sX   /data/av2000/b2b/venv/lib/python2.7/site-packages/pip-1.3-py2.7.egg/pip/commands/help.pyR      s
   N(   t   pip.basecommandR    R   t   pip.exceptionsR   R   (    (    (    sX   /data/av2000/b2b/venv/lib/python2.7/site-packages/pip-1.3-py2.7.egg/pip/commands/help.pyt   <module>   s   