parse_environment


Description:

[ Version ( since = "1.19.53" ) ]
public bool parse_environment () throws Error

parse the environment and set handle flags accordingly

Parse the program’s environment and set flags in the handle accordingly. For example if "LIBGUESTFS_DEBUG=1" then the ‘verbose’ flag is set in the handle.

*Most programs do not need to call this*. It is done implicitly when you call guestfs_session_create.

See "ENVIRONMENT VARIABLES" in guestfs(3) for a list of environment variables that can affect libguestfs handles. See also "guestfs_create_flags" in guestfs(3), and parse_environment_list.

Parameters:

this

A GuestfsSession object

Returns:

true on success, false on error