<s> from . helper import cmdPluginRootDir , fetchCmdPlugin <EOL> import os <EOL> usage = '<STR_LIT>' <EOL> example = '<STR_LIT>' <EOL> options = '<STR_LIT>' <EOL> newUsageBase = '''<STR_LIT>''' <EOL> def newUsage ( ) : <EOL> extraUsage = '<STR_LIT>' <EOL> for f in os . listdir ( cmdPluginRootDir ) : <EOL> if f . startswith ( '<STR_LIT>' ) or f . endswith ( '<STR_LIT>' ) or f . endswith ( '<STR_LIT>' ) : <EOL> continue <EOL> realPath = os . path . realpath ( os . path . join ( cmdPluginRootDir , f ) ) <EOL> if os . path . isdir ( realPath ) and fetchCmdPlugin ( f ) is not None : <EOL> if extraUsage == '<STR_LIT>' : <EOL> extraUsage = '<STR_LIT>' <EOL> extraUsage = extraUsage + '<STR_LIT>' + f <EOL> if extraUsage != '<STR_LIT>' : <EOL> extraUsage = '<STR_LIT:\n>' + extraUsage <EOL> print newUsageBase + extraUsage + '<STR_LIT:\n>' <EOL> compressUsage = '''<STR_LIT>''' % ( usage , example , options ) <EOL> ckstyleUsage = '''<STR_LIT>''' % ( usage , example , options ) <EOL> fixUsage = '''<STR_LIT>''' % ( usage , example , options ) </s>
