code: def main(**kwargs):
      
  
      if len(sys.argv) > 0:
          if sys.argv[0].endswith('dx-build-app'):
              logging.warn('Warning: dx-build-app has been replaced with "dx build --create-app". Please update your scripts.')
          elif sys.argv[0].endswith('dx-build-applet'):
              logging.warn('Warning: dx-build-applet has been replaced with "dx build". Please update your scripts.')
          exit(0)
docs: Entry point for dx-build-app(let).
  
      Don't call this function as a subroutine in your program! It is liable to
      sys.exit your program when it detects certain error conditions, so you
      can't recover from those as you could if it raised exceptions. Instead,
      call dx_build_app.build_and_upload_locally which provides the real
      implementation for dx-build-app(let) but is easier to use in your program.