From 68e88efced88f05664ae9050f6888453cfe9cd30 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 22 Nov 2020 15:06:07 +0200 Subject: 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. --- src/bin/obnam.rs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/bin/obnam.rs') 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(()) } @@ -43,9 +38,6 @@ enum Opt { #[structopt()] gen_id: String, - #[structopt(parse(from_os_str))] - dbname: PathBuf, - #[structopt(parse(from_os_str))] to: PathBuf, }, -- cgit v1.2.1