Tryag File Manager
Home
-
Turbo Force
Current Path :
/
proc
/
self
/
root
/
usr
/
share
/
rhsm
/
subscription_manager
/
Upload File :
New :
File
Dir
//proc/self/root/usr/share/rhsm/subscription_manager/i18n_optparse.pyc
mò x^Sc @ s• d Z d k Z d k Z d k l Z d k l Z d k Z d k Z e i Z e i e _ e d ƒ Z d e f d „ ƒ YZ d e f d „ ƒ YZ d S( s© Make optparse friendlier to i18n/l10n Just use this instead of optparse, the interface should be the same. For some backgorund, see: http://bugs.python.org/issue4319 N( s IndentedHelpFormatter( s OptionParsers %prog [OPTIONS]t WrappedIndentedHelpFormatterc B s/ t Z d d d d d „ Z d „ Z d „ Z RS( Ni i i c C s t i | | | | | ƒ d S( N( t _IndentedHelpFormattert __init__t selft indent_incrementt max_help_positiont widtht short_first( R R R R R ( ( t5 /usr/share/rhsm/subscription_manager/i18n_optparse.pyR K s c C sJ g } | i | } | i | i d } t | ƒ | j o# d | i d | f } | i } n d | i d | | f } d } | i | ƒ | i oˆ | i | ƒ } t i | | i d t ƒ} | i d | d | d f ƒ | i g } | d D] } | d | i d | f qð ~ ƒ n# | d d j o | i d ƒ n d i | ƒ S( Ni s %*s%s t s %*s%-*s i t break_long_wordsi iÿÿÿÿs ( t resultR t option_stringst optiont optst help_positiont current_indentt opt_widtht lent indent_firstt appendt helpt expand_defaultt help_textt textwrapt wrapt help_widtht Falset help_linest extendt _[1]t linet join( R R R R R R R R R R ( ( R t format_optionZ s$ @c C s t d ƒ | S( Ns Usage: %s ( t _t usage( R R# ( ( R t format_usage€ s ( t __name__t __module__t NoneR R! R$ ( ( ( R R J s &t OptionParserc B s t Z d „ Z d „ Z RS( Nc C s t i i | i ƒ ƒ d S( N( t syst stdoutt writeR t format_help( R ( ( R t print_help† s c C s<