Clean up Options

This commit is contained in:
Elias Schriefer 2021-07-08 12:49:56 +02:00
parent a1df49555f
commit 7764c5021e

View File

@ -23,10 +23,12 @@ const DEFAULT_DATABASE_PATH: &'static str = "/var/lib/noise-server/noise-server.
#[derive(Debug, StructOpt)]
struct Options {
#[structopt(short, long, default_value = "/etc/noise-server/config.toml")]
/// Path to config
#[structopt(short, long, value_name = "path", default_value = "/etc/noise-server/config.toml")]
config: PathBuf,
#[structopt(short, long, default_value = DEFAULT_DATABASE_PATH)]
/// Path to database
#[structopt(short, long, value_name = "path", default_value = DEFAULT_DATABASE_PATH)]
database_path: PathBuf,
}