mirror of
https://github.com/scsibug/nostr-rs-relay.git
synced 2024-11-22 17:19:07 -05:00
6df92f9580
cargo fmt
21 lines
532 B
Rust
21 lines
532 B
Rust
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",
|
|
required = false
|
|
)]
|
|
pub db: Option<String>,
|
|
#[arg(
|
|
short,
|
|
long,
|
|
help = "Use the <file name> as the location of the config file",
|
|
required = false
|
|
)]
|
|
pub config: Option<String>,
|
|
}
|