Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: allow ORing between conditions #111

Open
DuckDuckWhale opened this issue Sep 18, 2023 · 1 comment
Open

Feature request: allow ORing between conditions #111

DuckDuckWhale opened this issue Sep 18, 2023 · 1 comment

Comments

@DuckDuckWhale
Copy link

$ cargo sweep -r -t 30 -i
error: The argument '--time <days>' cannot be used with one or more of the other specified arguments

USAGE:
    cargo-sweep sweep -r <--stamp|--file|--time <days>|--installed|--toolchains <toolchains>|--maxsize <maxsize>>

For more information try --help

It would be great if deleting on both conditions in one pass is allowed instead of having to do two passes.

@marcospb19
Copy link
Collaborator

marcospb19 commented Sep 18, 2023

Conditions act as filters, I wonder what's the most intuitive behavior, between && and || for chaining filters.

In other words, should a project pass on every or any condition/filter?

Because cargo-sweep deletes files and this is irreversible, I imagine taking the most conservative path leads to the least frustration, that is, the every alternative, ANDing instead of ORing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants