Skip to content

Deal with conflicting period options - #401

Merged
sandrobonazzola merged 1 commit into
psss:mainfrom
sandrobonazzola:issue_81
Jun 9, 2025
Merged

Deal with conflicting period options#401
sandrobonazzola merged 1 commit into
psss:mainfrom
sandrobonazzola:issue_81

Conversation

@sandrobonazzola

Copy link
Copy Markdown
Collaborator

When since/until options are used with relative time issue an error explaining it's not possible to specify both relative and absolute periods at the same time.

The error emitted looks like:

$ did last week --since 2025-05-22
 ERROR  Can't use --since or --until with 'last week'

Fixes #81

@sandrobonazzola
sandrobonazzola force-pushed the issue_81 branch 3 times, most recently from ad72504 to 2d68d96 Compare June 3, 2025 08:21
@sandrobonazzola
sandrobonazzola requested a review from psss June 3, 2025 10:07
@sandrobonazzola
sandrobonazzola force-pushed the issue_81 branch 2 times, most recently from d911826 to 34e3ce3 Compare June 5, 2025 09:01
@sandrobonazzola sandrobonazzola self-assigned this Jun 5, 2025
When since/until options are used with relative time issue an
error explaining it's not possible to specify both relative and absolute
periods at the same time.

The error emitted looks like:

```console
$ did last week --since 2025-05-22
 ERROR  Can't use --since or --until with 'last week'
```

Fixes psss#81

Signed-off-by: Sandro Bonazzola <sbonazzo@redhat.com>
@sandrobonazzola
sandrobonazzola merged commit cb5696c into psss:main Jun 9, 2025
@sandrobonazzola
sandrobonazzola deleted the issue_81 branch June 9, 2025 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Warn when since/until options are used with relative time

1 participant