Add support for specifying database path using env variable DB_PATH (#78)

This commit is contained in:
Michael Delaney 2022-08-31 06:03:11 -07:00 committed by GitHub
parent a9c6806745
commit 960061584d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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")