// Reimplementation of the proxy command line utitlity that comes with libproxy. extern crate libproxy; use libproxy::ProxyFactory; fn main() { let mut args = std::env::args(); if args.len() != 2 { println!("Usage: proxy "); return; } let factory = ProxyFactory::new().unwrap(); for proxy in factory.get_proxies(&args.nth(1).unwrap()).unwrap() { print!("{} ", proxy); } println!(); }