mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2025-05-19 07:00:30 -04:00
Rename opt
to args
This commit is contained in:
parent
f4827e3fa4
commit
cb4e2c041b
1 changed files with 3 additions and 3 deletions
|
@ -59,9 +59,9 @@ async fn main() -> Result<()> {
|
|||
|
||||
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)??,
|
||||
None => Config::testnet(),
|
||||
};
|
||||
|
@ -89,7 +89,7 @@ async fn main() -> Result<()> {
|
|||
.run(monero_network, "stagenet.community.xmr.to")
|
||||
.await?;
|
||||
|
||||
match opt.cmd.unwrap_or_default() {
|
||||
match args.cmd.unwrap_or_default() {
|
||||
Command::BuyXmr {
|
||||
alice_peer_id,
|
||||
alice_addr,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue