From 7764c5021e71430814dd2898423b37a978378a32 Mon Sep 17 00:00:00 2001 From: EliasSchriefer Date: Thu, 8 Jul 2021 12:49:56 +0200 Subject: [PATCH] Clean up Options --- src/main.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 9e269f8..7c49673 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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, }