diff options
| -rw-r--r-- | ttt.jai | 15 |
1 files changed, 1 insertions, 14 deletions
@@ -1185,19 +1185,6 @@ main :: () { is_exit_requested := false; for 1..args.count-1 { - - if is_equal_to_any(args[it], "--test", "-t") { - if (load_database(*database, db_file_path) == false) { - print_error("Failed to load database."); - exit(1); - } - start := current_time_monotonic(); - update_total_times(*database); - stop := current_time_monotonic(); - print("Took % ms to update total times for % entries.\n", to_seconds(stop-start), database.tasks.count); - exit(0); - } - if is_equal_to_any(args[it], "--help", "-h") { write_strings( "Usage: ttt [OPTION]... [FILE]...\n", @@ -1547,7 +1534,7 @@ main :: () { continue; } - if (add_task(db, selected_task) == null) continue; // TODO Show error? + add_task(db, selected_task); trigger_autosave(); |
