use libp2p::core::Multiaddr; use url::Url; #[derive(structopt::StructOpt, Debug)] #[structopt(name = "xmr-btc-swap", about = "Trustless XMR BTC swaps")] pub enum Options { Alice { #[structopt(default_value = "http://127.0.0.1:8332", long = "bitcoind")] bitcoind_url: Url, #[structopt(default_value = "http://127.0.0.1:18083", long = "monerod")] monerod_url: Url, #[structopt(default_value = "/ip4/127.0.0.1/tcp/9876", long = "listen-addr")] listen_addr: Multiaddr, #[structopt(long = "tor-port")] tor_port: Option, }, Bob { #[structopt(long = "sats")] satoshis: u64, #[structopt(long = "alice-addr")] alice_addr: Multiaddr, #[structopt(default_value = "http://127.0.0.1:8332", long = "bitcoind")] bitcoind_url: Url, #[structopt(default_value = "http://127.0.0.1:18083", long = "monerod")] monerod_url: Url, #[structopt(long = "tor")] tor: bool, }, }