stash: remove redundant import flag

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I6a6a6964348f1ad4915890f0b4ccd59619cc3e1a
This commit is contained in:
raf 2025-08-12 15:31:58 +03:00
commit 0c8003d636
Signed by: NotAShelf
GPG key ID: 29D95B64378DB4BF

View file

@ -37,9 +37,6 @@ struct Cli {
#[arg(long)] #[arg(long)]
db_path: Option<PathBuf>, db_path: Option<PathBuf>,
#[arg(long)]
import_tsv: bool,
} }
#[derive(Subcommand)] #[derive(Subcommand)]
@ -89,12 +86,8 @@ fn main() {
log::error!("Failed to open database: {e}"); log::error!("Failed to open database: {e}");
process::exit(1); process::exit(1);
}); });
let db = db::SledClipboardDb { db: sled_db };
if cli.import_tsv { let db = db::SledClipboardDb { db: sled_db };
db.import_tsv(io::stdin());
return;
}
match cli.command { match cli.command {
Some(Command::Store) => { Some(Command::Store) => {