From 8d004ab16c761b4dc47dd57e6eee3312d23c5cab Mon Sep 17 00:00:00 2001 From: Joscha Date: Mon, 13 Dec 2021 23:41:37 +0100 Subject: [PATCH] Add todos --- src/cli.rs | 2 ++ src/eval/command/formula.rs | 1 + 2 files changed, 3 insertions(+) diff --git a/src/cli.rs b/src/cli.rs index 6d89b33..ddf7c7c 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -22,6 +22,8 @@ pub struct Opt { /// Overwrite the current date #[structopt(short, long)] date: Option, + // TODO Allow negative numbers for `before` and `after` + // TODO Or just allow any Delta /// How many days to include before the current date #[structopt(short, long, default_value = "3")] before: u32, diff --git a/src/eval/command/formula.rs b/src/eval/command/formula.rs index 220e73d..974c63e 100644 --- a/src/eval/command/formula.rs +++ b/src/eval/command/formula.rs @@ -329,6 +329,7 @@ impl FormulaSpec { if let Some(last_done) = s.last_done() { range = range.with_from(last_done.succ())?; } + // TODO Otherwise, go back one year or so if no FROM is specified } s.limit_from_until(range)