2020-10-28 23:45:45 -04:00
|
|
|
use libp2p::core::Multiaddr;
|
|
|
|
use url::Url;
|
|
|
|
|
2020-10-15 18:14:39 -04:00
|
|
|
#[derive(structopt::StructOpt, Debug)]
|
2020-10-28 23:45:45 -04:00
|
|
|
pub enum Options {
|
|
|
|
Alice {
|
|
|
|
#[structopt(default_value = "http://127.0.0.1:8332", long = "bitcoind")]
|
|
|
|
bitcoind_url: Url,
|
|
|
|
|
2020-10-29 07:18:59 -04:00
|
|
|
#[structopt(default_value = "/ip4/127.0.0.1/tcp/9876", long = "listen-addr")]
|
|
|
|
listen_addr: Multiaddr,
|
2020-10-15 18:14:39 -04:00
|
|
|
|
2020-10-29 07:18:59 -04:00
|
|
|
#[structopt(long = "tor-port")]
|
|
|
|
tor_port: Option<u16>,
|
2020-10-28 23:45:45 -04:00
|
|
|
},
|
|
|
|
Bob {
|
|
|
|
#[structopt(long = "sats")]
|
|
|
|
satoshis: u64,
|
2020-10-26 01:55:53 -04:00
|
|
|
|
2020-10-29 07:18:59 -04:00
|
|
|
#[structopt(long = "alice-addr")]
|
|
|
|
alice_addr: Multiaddr,
|
|
|
|
|
2020-10-28 23:45:45 -04:00
|
|
|
#[structopt(default_value = "http://127.0.0.1:8332", long = "bitcoind")]
|
|
|
|
bitcoind_url: Url,
|
|
|
|
},
|
2020-10-15 18:14:39 -04:00
|
|
|
}
|