def fixup_old_jsargs():
 for i in range(len(sys.argv)):
  if (sys.argv[i] == '--build_js'):
   print('WARNING: --build_js (with underscore) is deprecated, use --build-js')
   sys.argv[i] = '--build-js'
  if (sys.argv[i] == '--install_js'):
   print('WARNING: --install_js (with underscore) is deprecated, use --install-js')
   sys.argv[i] = '--install-js'

def fixup_old_jsargs ( ) : for i in range ( len ( sys . argv ) ) : if ( sys . argv [ i ] == '--build_js' ) : print ( 'WARNING: --build_js (with underscore) is deprecated, use --build-js' ) sys . argv [ i ] = '--build-js' if ( sys . argv [ i ] == '--install_js' ) : print ( 'WARNING: --install_js (with underscore) is deprecated, use --install-js' ) sys . argv [ i ] = '--install-js'
fixup old style command line options with underscores .