mirror of
https://github.com/aljazceru/cdk.git
synced 2026-01-09 16:05:40 +01:00
25 lines
678 B
Rust
25 lines
678 B
Rust
use std::path::PathBuf;
|
|
|
|
use clap::Parser;
|
|
|
|
#[derive(Parser)]
|
|
#[command(about = "A cashu mint written in rust", author = env!("CARGO_PKG_AUTHORS"), version = env!("CARGO_PKG_VERSION"))]
|
|
pub struct CLIArgs {
|
|
#[arg(
|
|
short,
|
|
long,
|
|
help = "Use the <directory> as the location of the database",
|
|
required = false
|
|
)]
|
|
pub work_dir: Option<PathBuf>,
|
|
#[arg(
|
|
short,
|
|
long,
|
|
help = "Use the <file name> as the location of the config file",
|
|
required = false
|
|
)]
|
|
pub config: Option<PathBuf>,
|
|
#[arg(short, long, help = "Recover Greenlight from seed", required = false)]
|
|
pub recover: Option<String>,
|
|
}
|