diff options
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index ef47c73..6ef241b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -11,14 +11,17 @@ use structopt::StructOpt; #[derive(StructOpt)] #[structopt()] struct Opt { - #[structopt(short, long, default_value = "database.db")] + #[structopt(long, default_value = "database.db")] database: String, + + #[structopt(long, default_value = "deck.deck")] + deck: String, } fn main() -> Result<()> { let opt = Opt::from_args(); let conn = db::db::init(opt.database)?; - let entries = deck::read()?; + let entries = deck::read(opt.deck)?; db::db::add_missing_deck_entries(&conn, entries)?; gui::gui::start(&conn) } |