This files contains `Command` and `Arguments` structs

pull/182/head
Franck Royer 4 years ago
parent 45dccb8be2
commit 7d392c3086
No known key found for this signature in database
GPG Key ID: A82ED75A8DFC50A4

@ -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…
Cancel
Save