Skip to content

Commit

Permalink
update readme and command docs to mention naive date support
Browse files Browse the repository at this point in the history
  • Loading branch information
syntaxbullet committed Jan 11, 2024
1 parent 6db7cbb commit e18e30d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ citrine add [OPTIONS] <TITLE>
### 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.
Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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)
Expand Down

0 comments on commit e18e30d

Please sign in to comment.