Skip to content

Commit

Permalink
chore(yay): add warning for yay -c (#2181)
Browse files Browse the repository at this point in the history
add warning for yay -c
  • Loading branch information
Jguer authored May 22, 2023
1 parent df3dbfa commit 9641d2a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,10 @@ func main() {
if err = handleCmd(ctx, cfg, cmdArgs, db.Executor(dbExecutor)); err != nil {
if str := err.Error(); str != "" {
text.Errorln(str)
if cmdArgs.ExistsArg("c") && cmdArgs.ExistsArg("y") && cmdArgs.Op == "S" {
// Remove after 2023-10-01
text.Errorln("Did you mean 'yay -Yc'?")
}
}

exitError := &exec.ExitError{}
Expand Down

0 comments on commit 9641d2a

Please sign in to comment.