diff --git a/swap/src/cli.rs b/swap/src/cli.rs index a38b33ab..4a04359b 100644 --- a/swap/src/cli.rs +++ b/swap/src/cli.rs @@ -86,7 +86,7 @@ pub struct Config { help = "Provide a custom path to the configuration file. The configuration file must be a toml file.", parse(from_os_str) )] - pub config_path: Option, + pub path: Option, } fn parse_btc(str: &str) -> anyhow::Result { diff --git a/swap/src/main.rs b/swap/src/main.rs index 98b4f1a5..381c10d7 100644 --- a/swap/src/main.rs +++ b/swap/src/main.rs @@ -77,7 +77,7 @@ async fn main() -> Result<()> { receive_bitcoin, config, } => { - let settings = init_settings(config.config_path)?; + let settings = init_settings(config.path)?; let swap_amounts = SwapAmounts { xmr: send_monero, @@ -116,7 +116,7 @@ async fn main() -> Result<()> { receive_monero, config, } => { - let settings = init_settings(config.config_path)?; + let settings = init_settings(config.path)?; let swap_amounts = SwapAmounts { btc: send_bitcoin, @@ -166,7 +166,7 @@ async fn main() -> Result<()> { listen_addr, config, }) => { - let settings = init_settings(config.config_path)?; + let settings = init_settings(config.path)?; let (bitcoin_wallet, monero_wallet) = init_wallets(settings.wallets).await?; @@ -191,7 +191,7 @@ async fn main() -> Result<()> { alice_addr, config, }) => { - let settings = init_settings(config.config_path)?; + let settings = init_settings(config.path)?; let (bitcoin_wallet, monero_wallet) = init_wallets(settings.wallets).await?;