Clean up Options
This commit is contained in:
parent
a1df49555f
commit
7764c5021e
@ -23,10 +23,12 @@ const DEFAULT_DATABASE_PATH: &'static str = "/var/lib/noise-server/noise-server.
|
|||||||
|
|
||||||
#[derive(Debug, StructOpt)]
|
#[derive(Debug, StructOpt)]
|
||||||
struct Options {
|
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,
|
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,
|
database_path: PathBuf,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user