2023-01-05 08:47:34 -05:00
|
|
|
use clap::Parser;
|
|
|
|
|
|
|
|
#[derive(Parser)]
|
|
|
|
#[command(about = "A nostr relay 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",
|
2023-01-16 18:21:12 -05:00
|
|
|
required = false,
|
2023-01-05 08:47:34 -05:00
|
|
|
)]
|
2023-01-16 18:21:12 -05:00
|
|
|
pub db: Option<String>,
|
2023-02-06 23:35:08 -05:00
|
|
|
#[arg(
|
|
|
|
short,
|
|
|
|
long,
|
|
|
|
help = "Use the <file name> as the location of the config file",
|
|
|
|
required = false,
|
|
|
|
)]
|
|
|
|
pub config: Option<String>,
|
2023-01-05 08:47:34 -05:00
|
|
|
}
|