def application_init(args, update=False):
 setup_environment()
 process_args(args)
 app = new_application(args)
 model = new_model(app, args.repo, prompt=args.prompt, settings=args.settings)
 if update:
  model.update_status()
 cfg = gitcfg.current()
 return ApplicationContext(args, app, cfg, model)

def application_init ( args , update = False ) : setup_environment ( ) process_args ( args ) app = new_application ( args ) model = new_model ( app , args . repo , prompt = args . prompt , settings = args . settings ) if update : model . update_status ( ) cfg = gitcfg . current ( ) return ApplicationContext ( args , app , cfg , model )
parses the command-line arguments and starts git-cola .