summary refs log tree commit diff
path: root/ripple/fossil/src/bin/extract.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ripple/fossil/src/bin/extract.rs')
-rw-r--r--ripple/fossil/src/bin/extract.rs11
1 files changed, 7 insertions, 4 deletions
diff --git a/ripple/fossil/src/bin/extract.rs b/ripple/fossil/src/bin/extract.rs
index cb45896..a1e83df 100644
--- a/ripple/fossil/src/bin/extract.rs
+++ b/ripple/fossil/src/bin/extract.rs
@@ -9,17 +9,20 @@ use {
 		fs,
 		io::{self, Read, Write},
 		os::unix::{fs::symlink, prelude::OpenOptionsExt},
-		path::Path,
+		path::{Path, PathBuf},
 	},
 };
 
 #[derive(clap::Parser)]
-struct Args {}
+struct Args {
+	#[clap(long, default_value = "fossil.db")]
+	store: PathBuf,
+}
 
 fn main() {
-	let _args = Args::parse();
+	let args = Args::parse();
 
-	let store = fossil::Store::open("fossil.db").unwrap();
+	let store = fossil::Store::open(args.store).unwrap();
 	let root = {
 		let mut stdin = io::stdin();