mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-09-17 15:12:12 +00:00
22 lines
513 B
Rust
22 lines
513 B
Rust
|
use std::path::PathBuf;
|
||
|
|
||
|
#[derive(structopt::StructOpt, Debug)]
|
||
|
pub struct Arguments {
|
||
|
#[structopt(
|
||
|
long = "config",
|
||
|
help = "Provide a custom path to the configuration file. The configuration file must be a toml file.",
|
||
|
parse(from_os_str)
|
||
|
)]
|
||
|
pub config: Option<PathBuf>,
|
||
|
|
||
|
#[structopt(subcommand)]
|
||
|
pub cmd: Command,
|
||
|
}
|
||
|
|
||
|
#[derive(structopt::StructOpt, Debug)]
|
||
|
#[structopt(name = "xmr_btc-swap", about = "XMR BTC atomic swap")]
|
||
|
pub enum Command {
|
||
|
Start,
|
||
|
History,
|
||
|
}
|