summaryrefslogtreecommitdiff
path: root/src/bin/obnam.rs
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2020-11-22 15:06:07 +0200
committerLars Wirzenius <liw@liw.fi>2020-11-22 16:58:52 +0200
commit68e88efced88f05664ae9050f6888453cfe9cd30 (patch)
tree0484972dd085963e157de00f878d5f0e6d98a52a /src/bin/obnam.rs
parent0158bd9c06acae4245897e5e04681b4a1637bee9 (diff)
downloadobnam2-68e88efced88f05664ae9050f6888453cfe9cd30.tar.gz
feat! use temporary files for SQLite databases
The user should not have to specify filenames for the databases, since they don't actually care where they're stored.
Diffstat (limited to 'src/bin/obnam.rs')
-rw-r--r--src/bin/obnam.rs10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/bin/obnam.rs b/src/bin/obnam.rs
index d0cf271..1394b6c 100644
--- a/src/bin/obnam.rs
+++ b/src/bin/obnam.rs
@@ -15,12 +15,7 @@ fn main() -> anyhow::Result<()> {
match opt {
Opt::Backup { config } => backup(&config, BUFFER_SIZE)?,
Opt::List { config } => list(&config)?,
- Opt::Restore {
- config,
- gen_id,
- dbname,
- to,
- } => restore(&config, &gen_id, &dbname, &to)?,
+ Opt::Restore { config, gen_id, to } => restore(&config, &gen_id, &to)?,
}
Ok(())
}
@@ -44,9 +39,6 @@ enum Opt {
gen_id: String,
#[structopt(parse(from_os_str))]
- dbname: PathBuf,
-
- #[structopt(parse(from_os_str))]
to: PathBuf,
},
}