use easy_arg::EasyArg; fn main() { let mut arg = EasyArg::new(); let valid = arg.get_string("valid"); println!(":: {}", valid); let sec = arg.get_section("servers").unwrap(); let name = sec.get_string("NAME"); println!("servers.name {}", name); arg.use_section("servers"); let server_home = arg.get_string("SERVER_HOME"); println!("{:?}", server_home); arg.use_sub_section("first_server"); let a_server = arg.get_string("A"); println!("A: {}", a_server); let third_b = arg.get_sub_section("servers", "third-server").unwrap().get_string("B"); println!("B {}", third_b); }