(g, out_fname, args=None)
Reduces the Lua code for a cart to use a minimal number of characters.

    Args:
      g: The Game.
      out_fname: The output filename, for error messages.
      args: The argparse parsed args object, or None.
Reduces the Lua code for a cart to use a minimal number of characters.
Reduces the Lua code for a cart to use a minimal number of characters .
def luamin(g, out_fname, args=None):
    """Reduces the Lua code for a cart to use a minimal number of characters.

    Args:
      g: The Game.
      out_fname: The output filename, for error messages.
      args: The argparse parsed args object, or None.
    """
    file.to_file(
        g, filename=out_fname,
        lua_writer_cls=lua.LuaMinifyTokenWriter,
        lua_writer_args={
            # 'keep_property_names': args.keep_property_names,
            'keep_all_names': args.keep_all_names,
            'keep_names_from_file': args.keep_names_from_file})
def luamin ( g , out_fname , args = None ) : file . to_file ( g , filename = out_fname , lua_writer_cls = lua . LuaMinifyTokenWriter , lua_writer_args = { # 'keep_property_names': args.keep_property_names, 'keep_all_names' : args . keep_all_names , 'keep_names_from_file' : args . keep_names_from_file } )