diff options
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.rs b/src/main.rs index c4acc8b..6fda51f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -27,12 +27,12 @@ fn main() -> Result<()> { register.add_register(&datapath)?; }, - Commands::View {agent, filter_note, history, total} => { + Commands::View {agent, filter_note, history, total, month} => { let datapath = cli.database_path.expect("database path not found"); let conn = Connection::open(&datapath)?; match (history, total) { - (true, false) => Database::view_history(conn, agent, filter_note)?, + (true, false) => Database::view_history(conn, agent, filter_note, month)?, (false, true) => Database::view_total(conn)?, (false, false) => Database::view_total(conn)?, (true, true) => unreachable!() |