parameters: ()
docstring: Drives the main program.
docstring_summary: Drives the main program.
docstring_tokens: Drives the main program .
function: def main():
      """Drives the main program."""
      options = parse_args()
  
      if options.default_excludes and len(options.default_excludes) > 0:
          default_excludes = options.default_excludes.split(",")
      else:
          default_excludes = []
  
      # Locate the rc filename to load, then load it.
      rc_filename = find_appropriate_rcfile(options)
      if rc_filename:
          if options.verbose:
              print "reading rc data from file '{}'".format(rc_filename)
          rcdata = read_rcfile(rc_filename)
      else:
          sys.stderr.write("no rcfile specified, cannot guess configuration")
          exit(1)
  
      # Find configuration.
      configuration = get_configuration(options, rcdata, options.config_name)
      if not configuration:
          sys.stderr.write("failed to find configuration for {}".format(
              options.config_data))
          exit(2)
  
      # Kick off the transfer.
      sync_configured_sources(options, configuration, default_excludes)
function_tokens: def main ( ) : options = parse_args ( ) if options . default_excludes and len ( options . default_excludes ) > 0 : default_excludes = options . default_excludes . split ( "," ) else : default_excludes = [ ] # Locate the rc filename to load, then load it. rc_filename = find_appropriate_rcfile ( options ) if rc_filename : if options . verbose : print "reading rc data from file '{}'" . format ( rc_filename ) rcdata = read_rcfile ( rc_filename ) else : sys . stderr . write ( "no rcfile specified, cannot guess configuration" ) exit ( 1 ) # Find configuration. configuration = get_configuration ( options , rcdata , options . config_name ) if not configuration : sys . stderr . write ( "failed to find configuration for {}" . format ( options . config_data ) ) exit ( 2 ) # Kick off the transfer. sync_configured_sources ( options , configuration , default_excludes )