From e18e30d0042767ab16a70b0886809cb5df9ed4d6 Mon Sep 17 00:00:00 2001 From: syntaxbullet Date: Thu, 11 Jan 2024 19:58:41 +0100 Subject: [PATCH] update readme and command docs to mention naive date support --- README.md | 2 +- src/main.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 6b95518..bd04535 100644 --- a/README.md +++ b/README.md @@ -80,7 +80,7 @@ citrine add [OPTIONS] ### Options: -- `-d, --due <DUE_DATE>` - The due date in RFC 3339 format (`YYYY-MM-DDTHH:MM:SS+00:00`). +- `-d, --due <DUE_DATE>` - The due date in RFC 3339 format (`YYYY-MM-DDTHH:MM:SS+00:00`) or naive date format (`YYYY-MM-DD`) - `-p, --priority <PRIORITY>` - Priority level (0-9). - `-t, --tags <TAGS>` - Associated tags, comma-separated. - `-h, --help` - Display help. diff --git a/src/main.rs b/src/main.rs index 7f80003..2eaa752 100644 --- a/src/main.rs +++ b/src/main.rs @@ -26,7 +26,7 @@ enum Commands { struct Add { /// The title of the task title: String, - /// The due date of the task in rfc3339 format (e.g. 2021-01-01T00:00:00+00:00) + /// The due date of the task in rfc3339 format (e.g. 2021-01-01T00:00:00+00:00) or naive-date format (e.g. 2021-01-01) #[arg(short = 'd', long = "due")] due_date: Option<String>, /// The priority of the task [0-9] @@ -41,7 +41,7 @@ struct Add { struct Update { /// The id of the task to update id: u8, - /// The due date of the task in rfc3339 format (e.g. 2021-01-01T00:00:00+00:00) + /// The due date of the task in rfc3339 format (e.g. 2021-01-01T00:00:00+00:00) or naive-date format (e.g. 2021-01-01) #[arg(short = 'd', long = "due")] due_date: Option<String>, /// The priority of the task (0-9)