diff options
author | Joris | 2022-03-20 12:57:22 +0100 |
---|---|---|
committer | Joris | 2022-03-20 12:57:44 +0100 |
commit | a77b96ddd1c2fb118aad785b6b7b452d71c61c20 (patch) | |
tree | 8547ceb569efeb8d31391d653329f2d5b1e66a80 /src/main.rs | |
parent | 6277be699e613756fb786a524f71ddbe509ab81e (diff) |
Don’t add a newline if there is no event in CLI
This fixes counting 1 event when piping `wc -l`.
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 83a0446..56a499c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -26,7 +26,7 @@ fn main() -> Result<()> { } = Opt::from_args(); let conn = db::init(&db_path)?; if list_today { - println!("{}", cli::today(&conn)?); + print!("{}", cli::today(&conn)?); } else { gui::run(conn); } |