nostr-rs-relay/src/cli.rs

21 lines
532 B
Rust
Raw Normal View History

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-02-08 10:55:17 -05:00
required = false
)]
pub db: Option<String>,
#[arg(
short,
long,
help = "Use the <file name> as the location of the config file",
2023-02-08 10:55:17 -05:00
required = false
)]
pub config: Option<String>,
}