code: def main():
      
  
      parser = make_parser()
      args = parser.parse_args()
  
      if not hasattr(args, 'action'):
          parser.print_help()
          exit(1)
  
      if args.action == 'sheet':
          from bernard.misc.sheet_sync import main as main_sheet
          main_sheet(args)
      elif args.action == 'run':
          from bernard.cli import main as main_run
          main_run()
      elif args.action == 'start_project':
          from bernard.misc.start_project import main as main_sp
          main_sp(args)
docs: Run the appropriate main function according to the output of the parser.