(g, out_fname, args=None)
Rewrite the Lua code for a cart to use regular formatting.

    Args:
      g: The Game.
      out_fname: The output filename, for error messages.
      args: The argparse parsed args object, or None.
Rewrite the Lua code for a cart to use regular formatting.
Rewrite the Lua code for a cart to use regular formatting .
def luafmt(g, out_fname, args=None):
    """Rewrite the Lua code for a cart to use regular formatting.

    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.LuaFormatterWriter,
        lua_writer_args={'indentwidth': args.indentwidth})
def luafmt ( g , out_fname , args = None ) : file . to_file ( g , filename = out_fname , lua_writer_cls = lua . LuaFormatterWriter , lua_writer_args = { 'indentwidth' : args . indentwidth } )