Add support for specifying database path using env variable DB_PATH (#78)
This commit is contained in:
parent
a9c6806745
commit
960061584d
1 changed files with 1 additions and 0 deletions
|
@ -122,6 +122,7 @@ pub fn init() {
|
||||||
.arg(
|
.arg(
|
||||||
Arg::new("path")
|
Arg::new("path")
|
||||||
.index(1)
|
.index(1)
|
||||||
|
.env("DB_PATH")
|
||||||
.required(false)
|
.required(false)
|
||||||
.validator(path_valid)
|
.validator(path_valid)
|
||||||
.default_value("memory")
|
.default_value("memory")
|
||||||
|
|
Loading…
Reference in a new issue