def AddPluginsSubparsers():
 classes = sorted(export_plugins.plugin.ExportPlugin.classes.itervalues(), key=(lambda cls: cls.name))
 subparsers = flags.PARSER.add_subparsers(title='Subcommands')
 for cls in classes:
  if (not cls.name):
   continue
  subparser = subparsers.add_parser(cls.name, help=cls.description)
  plugin_obj = cls()
  plugin_obj.ConfigureArgParser(subparser)
  subparser.set_defaults(func=plugin_obj.Run)

def AddPluginsSubparsers ( ) : classes = sorted ( export_plugins . plugin . ExportPlugin . classes . itervalues ( ) , key = ( lambda cls : cls . name ) ) subparsers = flags . PARSER . add_subparsers ( title = 'Subcommands' ) for cls in classes : if ( not cls . name ) : continue subparser = subparsers . add_parser ( cls . name , help = cls . description ) plugin_obj = cls ( ) plugin_obj . ConfigureArgParser ( subparser ) subparser . set_defaults ( func = plugin_obj . Run )
adds subparsers for all the registered export plugins .