mirror of
https://github.com/scsibug/nostr-rs-relay.git
synced 2025-03-25 12:22:27 -04:00
15 lines
376 B
Rust
15 lines
376 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",
|
||
|
default_value = ".",
|
||
|
required = false
|
||
|
)]
|
||
|
pub db: String,
|
||
|
}
|