ó
ÈMc           @   s]   d  d l  m Z d  d l Te d  Z e d  Z e d  Z d   Z d   Z e j	 Z	 d S(	   i˙˙˙˙(   t   query(   t   *s   smart search expression ...sr   
This command allows searching for the given expressions
in the name, summary, and description of known packages.
s|   
smart search ldap
smart search kernel module
smart search rpm 'package manager'
smart search pkgname
smart search 'pkgn*e'
c           C   s   t  j d t d t d t  S(   Nt   usaget   descriptiont   examples(   R    t   option_parsert   USAGEt   DESCRIPTIONt   EXAMPLES(    (    (    s9   /usr/lib/python2.7/dist-packages/smart/commands/search.pyR   (   s    c         C   s³   t  j |  d t d t d t } | j | _ | j | _ | j | _ xL |  D]D } d | k rq | j	 j
 |  qL d | k rL | j j
 |  qL qL Wt | _ t | _ g  | _ | S(   NR   R   R   s   :/t   /(   R    t   parse_optionsR   R   R   t   argst   namet   summaryR   t   urlt   appendt   patht   Truet   show_summaryt   hide_version(   t   argvt   optst   arg(    (    s9   /usr/lib/python2.7/dist-packages/smart/commands/search.pyR
   ,   s    			N(
   t   smart.commandsR    t   smartt   _R   R   R   R   R
   t   main(    (    (    s9   /usr/lib/python2.7/dist-packages/smart/commands/search.pyt   <module>   s   
				