def _CommandsStart(unused_argv):
  # The following is supposed to return after registering additional commands
  try:
    sys.modules['__main__'].main(GetCommandArgv())
  # If sys.exit was called, return with error code.
  except SystemExit, e:
    sys.exit(e.code)
  except Exception, error:
    traceback.print_exc()  # Print a backtrace to stderr.
    ShortHelpAndExit('\nFATAL error in main: %s' % error)

  if len(GetCommandArgv()) > 1:
    command = GetCommand(command_required=True)
  else:
    command = GetCommandByName(_cmd_default)
    if command is None:
      ShortHelpAndExit("FATAL Command '%s' unknown" % _cmd_default)
  sys.exit(command.CommandRun(GetCommandArgv()))
Main initialization.
dataset/ETHPy150Open google/google-apputils/google/apputils/appcommands.py/_CommandsStart