Modify runtime to allow memory or disk db

DiskDB is not working yet, but we'll get there!
This commit is contained in:
Paul Hauner
2019-03-31 18:57:48 +11:00
parent 9a0ebac687
commit 08b1808745
6 changed files with 107 additions and 13 deletions

View File

@@ -58,6 +58,15 @@ fn main() {
.help("Listen port for RPC endpoint.")
.takes_value(true),
)
.arg(
Arg::with_name("db")
.long("db")
.value_name("DB")
.help("Type of database to use.")
.takes_value(true)
.possible_values(&["rocks", "memory"])
.default_value("memory"),
)
.get_matches();
// invalid arguments, panic