{"record":{"id":"2ec144f73c791b1c","repo":"Jguer/yay","slug":"unhandled-operation","errorCode":null,"errorMessage":"unhandled operation","messagePattern":"unhandled operation","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cmd.go","lineNumber":274,"sourceCode":"\tcase \"T\", \"deptest\":\n\t\treturn run.CmdBuilder.Show(run.CmdBuilder.BuildPacmanCmd(ctx,\n\t\t\tcmdArgs, run.Cfg.Mode, settings.NoConfirm))\n\tcase \"U\", \"upgrade\":\n\t\treturn handleUpgrade(ctx, run, cmdArgs)\n\tcase \"B\", \"build\":\n\t\treturn handleBuild(ctx, run, dbExecutor, cmdArgs)\n\tcase \"G\", \"getpkgbuild\":\n\t\treturn handleGetpkgbuild(ctx, run, cmdArgs, dbExecutor)\n\tcase \"P\", \"show\":\n\t\treturn handlePrint(ctx, run, cmdArgs, dbExecutor)\n\tcase \"Y\", \"yay\":\n\t\treturn handleYay(ctx, run, cmdArgs, run.CmdBuilder,\n\t\t\tdbExecutor, run.QueryBuilder)\n\tcase \"W\", \"web\":\n\t\treturn handleWeb(ctx, run, cmdArgs)\n\t}\n\n\treturn errors.New(gotext.Get(\"unhandled operation\"))\n}\n\n// getFilter returns filter function which can keep packages which were only\n// explicitly installed or ones installed as dependencies for showing available\n// updates or their count.\nfunc getFilter(cmdArgs *parser.Arguments) (upgrade.Filter, error) {\n\tdeps, explicit := cmdArgs.ExistsArg(\"d\", \"deps\"), cmdArgs.ExistsArg(\"e\", \"explicit\")\n\n\tswitch {\n\tcase deps && explicit:\n\t\treturn nil, errors.New(gotext.Get(\"invalid option: '--deps' and '--explicit' may not be used together\"))\n\tcase deps:\n\t\treturn func(pkg *upgrade.Upgrade) bool {\n\t\t\treturn pkg.Reason == alpm.PkgReasonDepend\n\t\t}, nil\n\tcase explicit:\n\t\treturn func(pkg *upgrade.Upgrade) bool {\n\t\t\treturn pkg.Reason == alpm.PkgReasonExplicit","sourceCodeStart":256,"sourceCodeEnd":292,"githubUrl":"https://github.com/Jguer/yay/blob/328f4b4939fb35f38c2f7c7ce3b8638a839bafa5/cmd.go#L256-L292","documentation":"Returned by handleCmd when the parsed operation argument does not match any known subcommand case (T/deptest, U/upgrade, B/build, G/getpkgbuild, P/show, Y/yay, W/web). It is the switch's default fall-through: the dispatcher received an operation string it has no handler for, typically because parser.NormalizedOperation yielded an unexpected or empty value.","triggerScenarios":"Thrown at cmd.go:274 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check the spelling of the operation letter/word passed on the command line (e.g. -T, -U, -B, -G, -P, -Y, -W)","Run 'yay --help' to list supported operations","Verify the arguments parser produced the expected operation for the given flags"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"328f4b4939fb35f38c2f7c7ce3b8638a839bafa5","analyzedAt":"2026-09-07T16:45:12.608Z","contentChangedAt":"2026-09-07T16:45:12.608Z","schemaVersion":2},"datasetVersion":"2026-09-16T09:17:16.951Z"}