î i fxE ã @ sK d Z d d l Z d d l Z d d l Z d d l Z d d l Td Z e j d e ƒ Z e j d e e f ƒ Z e j d d ƒ Z Gd d „ d ƒ Z d d „ Z d d „ e j Dƒ Z d d „ Z d d „ Z Gd d „ d ƒ Z e d k rGd Z xK d d d d f D]7 Z e d e ƒ e d j e e e ƒ ƒ ƒ e ƒ q Wn d S)a6 distutils.fancy_getopt Wrapper around the standard getopt module that provides the following additional features: * short and long options are tied together * options have help strings, so fancy_getopt could potentially create a complete usage summary * options set attributes of a passed-in object é N)Ú*z[a-zA-Z](?:[a-zA-Z0-9-]*)z^%s$z^(%s)=!(%s)$ú-Ú_c @ sÖ e Z d Z d Z d d d „ Z d d „ Z d d „ Z d d d d „ Z d d „ Z d d „ Z d d „ Z d d „ Z d d „ Z d d „ Z d d d d „ Z d d „ Z d d d „ Z d d d d „ Z d S)ÚFancyGetoptaÕ Wrapper around the standard 'getopt()' module that provides some handy extra functionality: * short and long options are tied together * options have help strings, and help text can be assembled from them * options set attributes of a passed-in object * boolean options can have "negative aliases" -- eg. if --quiet is the "negative alias" of --verbose, then "--quiet" on the command line sets 'verbose' to false Nc C st | | _ i | _ | j r( | j ƒ n i | _ i | _ g | _ g | _ i | _ i | _ i | _ g | _ d S)N)Úoption_tableÚoption_indexÚ_build_indexÚaliasÚnegative_aliasÚ short_optsÚ long_optsÚ short2longÚ attr_nameÚ takes_argÚoption_order)Úselfr © r ú;/opt/alt/python34/lib64/python3.4/distutils/fancy_getopt.pyÚ__init__) s zFancyGetopt.__init__c C s6 | j j ƒ x" | j D] } | | j | d