mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-12-25 23:49:31 -05:00
This files contains Command
and Arguments
structs
This commit is contained in:
parent
45dccb8be2
commit
7d392c3086
@ -19,7 +19,7 @@ use std::{path::PathBuf, sync::Arc};
|
||||
use structopt::StructOpt;
|
||||
use swap::{
|
||||
bitcoin,
|
||||
cli::{Cancel, Command, Options, Refund, Resume},
|
||||
command::{Arguments, Cancel, Command, Refund, Resume},
|
||||
config,
|
||||
config::{
|
||||
initial_setup, query_user_for_initial_testnet_config, read_config, ConfigNotInitialized,
|
||||
@ -49,7 +49,7 @@ const MONERO_BLOCKCHAIN_MONITORING_WALLET_NAME: &str = "swap-tool-blockchain-mon
|
||||
async fn main() -> Result<()> {
|
||||
init_tracing(LevelFilter::Debug).expect("initialize tracing");
|
||||
|
||||
let opt = Options::from_args();
|
||||
let opt = Arguments::from_args();
|
||||
|
||||
let data_dir = if let Some(data_dir) = opt.data_dir {
|
||||
data_dir
|
||||
|
@ -4,7 +4,7 @@ use std::path::PathBuf;
|
||||
use uuid::Uuid;
|
||||
|
||||
#[derive(structopt::StructOpt, Debug)]
|
||||
pub struct Options {
|
||||
pub struct Arguments {
|
||||
#[structopt(
|
||||
long = "data-dir",
|
||||
help = "Provide a custom path to the data directory.",
|
@ -17,7 +17,7 @@
|
||||
)]
|
||||
|
||||
pub mod bitcoin;
|
||||
pub mod cli;
|
||||
pub mod command;
|
||||
pub mod config;
|
||||
pub mod database;
|
||||
pub mod execution_params;
|
||||
|
Loading…
Reference in New Issue
Block a user