pub fn load_with_options<S: BnStrCompatible>(
    filename: S,
    update_analysis_and_wait: bool,
    options: Option<Ref<Metadata>>
) -> Option<Ref<BinaryView>>
Expand description

The main way to open and load files (with options) into Binary Ninja. Make sure you’ve properly initialized the core before calling this function. See crate::headless::init()

let settings = [("analysis.linearSweep.autorun", false)].into();

let bv = binaryninja::load_with_options("/bin/cat", true, Some(settings))
    .expect("Couldn't open `/bin/cat`");