grr/core/grr_response_core/lib/flags.py
def StartMain(main, requires_root=False):
  """The main entry point to start applications.

  Parses flags and catches all exceptions for debugging.

  Args:
     main: A main function to call.
     requires_root: Whether the application needs to be run with root
       privileges.
  """
  try:
    app.run(main)
  except Exception:
    if FLAGS.debug:
      pdb.post_mortem()

    raise
The main entry point to start applications.

  Parses flags and catches all exceptions for debugging.

  Args:
     main: A main function to call.
     requires_root: Whether the application needs to be run with root
       privileges.
  
The main entry point to start applications.
Parses flags and catches all exceptions for debugging.
The main entry point to start applications . Parses flags and catches all exceptions for debugging .
def StartMain(main, requires_root=False):
  try:
    app.run(main)
  except Exception:
    if FLAGS.debug:
      pdb.post_mortem()
    raise
def StartMain ( main , requires_root = False ) : try : app . run ( main ) except Exception : if FLAGS . debug : pdb . post_mortem ( ) raise
The main entry point to start applications.
The main entry point to start applications .
"""The main entry point to start applications.

  Parses flags and catches all exceptions for debugging.

  Args:
     main: A main function to call.
     requires_root: Whether the application needs to be run with root
       privileges.
  """
main
A main function to call.
A main function to call .
requires_root
Whether the application needs to be run with root
privileges.
Whether the application needs to be run with root privileges .