This files contains Command and Arguments structs

This commit is contained in:
Franck Royer 2021-02-11 09:47:42 +11:00
parent 45dccb8be2
commit 7d392c3086
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4
3 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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.",

View File

@ -17,7 +17,7 @@
)]
pub mod bitcoin;
pub mod cli;
pub mod command;
pub mod config;
pub mod database;
pub mod execution_params;