blob: 956e9305e14e0870de3409b75bf51407f7bfd16f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
mod db;
mod gui;
mod model;
use anyhow::Result;
use structopt::StructOpt;
#[derive(StructOpt)]
#[structopt()]
struct Opt {
#[structopt(long, default_value = "database.db")]
database: String,
}
fn main() -> Result<()> {
let db_path = Opt::from_args().database;
let conn = db::init(&db_path)?;
gui::run(conn);
Ok(())
}
|