Rename opt to args

This commit is contained in:
Thomas Eizinger 2021-03-01 12:09:59 +11:00
parent f4827e3fa4
commit cb4e2c041b
No known key found for this signature in database
GPG Key ID: 651AC83A6C6C8B96

View File

@ -59,9 +59,9 @@ async fn main() -> Result<()> {
tracing::subscriber::set_global_default(subscriber)?; tracing::subscriber::set_global_default(subscriber)?;
let opt = Arguments::from_args(); let args = Arguments::from_args();
let config = match opt.config { let config = match args.config {
Some(config_path) => read_config(config_path)??, Some(config_path) => read_config(config_path)??,
None => Config::testnet(), None => Config::testnet(),
}; };
@ -89,7 +89,7 @@ async fn main() -> Result<()> {
.run(monero_network, "stagenet.community.xmr.to") .run(monero_network, "stagenet.community.xmr.to")
.await?; .await?;
match opt.cmd.unwrap_or_default() { match args.cmd.unwrap_or_default() {
Command::BuyXmr { Command::BuyXmr {
alice_peer_id, alice_peer_id,
alice_addr, alice_addr,