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

yay 12.0.0 regression: "invalid option: '--clean' and '--refresh' may not be used together" #2049

Closed
ChristophSchmidpeter opened this issue Apr 3, 2023 · 7 comments

Comments

@ChristophSchmidpeter
Copy link

Affected Version

v12.0.0

Describe the bug

Entering yay -c or yay --clean causes:
error: invalid option: '--clean' and '--refresh' may not be used together

Reproduction Steps

  1. yay -c or yay --clean

Expected behavior

Clean of unneeded packages.

Output

error: invalid option: '--clean' and '--refresh' may not be used together

@Jguer
Copy link
Owner

Jguer commented Apr 3, 2023

Hey @ChristophSchmidpeter this was an intended change to allow something like

yay --devel (yay -Syu --devel to work)

yay -Y --gendb and yay -Yc should be used instead.

I'll add it to the release notes

I did find a bug that the wrong --help is being displayed and the right help is only being displayed in -Y --help. I'll make a patch for this

@Sherlock-Holo
Copy link

@Jguer is thera a new version with the patch? I'm using 12.0.4 version but yay -c still can't use

@Jguer
Copy link
Owner

Jguer commented Apr 12, 2023

Hey @Sherlock-Holo , use yay -Yc instead.

yay does not default to -Y in the absence of an operation argument anymore to allow extra options to be passed to either the upgrade prompt or the yogurt selection menu

@meredrica
Copy link

This should probably be added to error message, this is extremely confusing

@Samueru-sama
Copy link

Add this to the error message, it is very confusing.

@Jguer
Copy link
Owner

Jguer commented Mar 11, 2024

Error message was removed as part of #2347 after almost a year of deprecation

@wzyou
Copy link

wzyou commented Oct 30, 2024

yay -Sc

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

No branches or pull requests

6 participants