o 0¦ixE ã @ sä d Z ddlZddlZddlZddlZddlT dZe de ¡Ze deef ¡Z e dd¡ZG d d „ d ƒZ dd„ Zd d„ ejD ƒZdd„ Zdd„ ZG dd„ dƒZedkrndZdD ]Zede ƒ ed eeeƒ¡ƒ eƒ qXdS dS )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 Zd ZdZddd„Zdd„ Zdd„ Zd d d „Zdd„ Zd d„ Z dd„ Z dd„ Zdd„ Zdd„ Z d dd„Zdd„ Zddd„Zd dd„ZdS )!Ú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 sN || _ i | _| j r | ¡ 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/python310/lib64/python3.10/distutils/fancy_getopt.pyÚ__init__) s zFancyGetopt.__init__c C s( | j ¡ | jD ] }|| j |d <