def ParseConfigCommandLine():
 if flags.FLAGS.config:
  CONFIG.Initialize(filename=flags.FLAGS.config, must_exist=True)
 else:
  raise RuntimeError('A config file is not specified.')
 if flags.FLAGS.secondary_configs:
  for config_file in flags.FLAGS.secondary_configs:
   CONFIG.LoadSecondaryConfig(config_file)
 for statement in flags.FLAGS.parameter:
  if ('=' not in statement):
   raise RuntimeError(('statement %s on command line not valid.' % statement))
  (name, value) = statement.split('=', 1)
  CONFIG.global_override[name] = value
 for context in flags.FLAGS.context:
  if context:
   CONFIG.AddContext(context)
 if CONFIG['Config.writeback']:
  CONFIG.SetWriteBack(CONFIG['Config.writeback'])
 if flags.FLAGS.config_help:
  print 'Configuration overview.'
  CONFIG.PrintHelp()
  sys.exit(0)

def ParseConfigCommandLine ( ) : if flags . FLAGS . config : CONFIG . Initialize ( filename = flags . FLAGS . config , must_exist = True ) else : raise RuntimeError ( 'A config file is not specified.' ) if flags . FLAGS . secondary_configs : for config_file in flags . FLAGS . secondary_configs : CONFIG . LoadSecondaryConfig ( config_file ) for statement in flags . FLAGS . parameter : if ( '=' not in statement ) : raise RuntimeError ( ( 'statement %s on command line not valid.' % statement ) ) ( name , value ) = statement . split ( '=' , 1 ) CONFIG . global_override [ name ] = value for context in flags . FLAGS . context : if context : CONFIG . AddContext ( context ) if CONFIG [ 'Config.writeback' ] : CONFIG . SetWriteBack ( CONFIG [ 'Config.writeback' ] ) if flags . FLAGS . config_help : print 'Configuration overview.' CONFIG . PrintHelp ( ) sys . exit ( 0 )
parse all the command line options which control the config system .