{"record":{"id":"770907d1227f3c90","repo":"argoproj/argo-workflows","slug":"unknown-output-mode-s-770907","errorCode":null,"errorMessage":"unknown output mode: %s","messagePattern":"unknown output mode: (.+?)","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cmd/argo/commands/cron/list.go","lineNumber":63,"sourceCode":"\t\t\t}\n\t\t\tlistOpts := metav1.ListOptions{}\n\t\t\tlistOpts.LabelSelector = listArgs.labelSelector\n\t\t\tcronWfList, err := serviceClient.ListCronWorkflows(ctx, &cronworkflowpkg.ListCronWorkflowsRequest{\n\t\t\t\tNamespace:   namespace,\n\t\t\t\tListOptions: &listOpts,\n\t\t\t})\n\t\t\tif err != nil {\n\t\t\t\treturn err\n\t\t\t}\n\t\t\tswitch listArgs.output.String() {\n\t\t\tcase \"\", \"wide\":\n\t\t\t\tprintTable(ctx, cronWfList.Items, &listArgs)\n\t\t\tcase \"name\":\n\t\t\t\tfor _, cronWf := range cronWfList.Items {\n\t\t\t\t\tfmt.Println(cronWf.Name)\n\t\t\t\t}\n\t\t\tdefault:\n\t\t\t\treturn fmt.Errorf(\"unknown output mode: %s\", listArgs.output.String())\n\t\t\t}\n\t\t\treturn nil\n\t\t},\n\t}\n\tcommand.Flags().BoolVarP(&listArgs.allNamespaces, \"all-namespaces\", \"A\", false, \"Show workflows from all namespaces\")\n\tcommand.Flags().VarP(&listArgs.output, \"output\", \"o\", \"Output format. \"+listArgs.output.Usage())\n\tcommand.Flags().StringVarP(&listArgs.labelSelector, \"selector\", \"l\", \"\", \"Selector (label query) to filter on, supports '=', '==', and '!='.(e.g. -l key1=value1,key2=value2). Matching objects must satisfy all of the specified label constraints.\")\n\treturn command\n}\n\nfunc printTable(ctx context.Context, wfList []wfv1.CronWorkflow, listArgs *listFlags) {\n\tw := tabwriter.NewWriter(os.Stdout, 0, 0, 3, ' ', 0)\n\tif listArgs.allNamespaces {\n\t\t_, _ = fmt.Fprint(w, \"NAMESPACE\\t\")\n\t}\n\t_, _ = fmt.Fprint(w, \"NAME\\tAGE\\tLAST RUN\\tNEXT RUN\\tSCHEDULES\\tTIMEZONE\\tSUSPENDED\")\n\t_, _ = fmt.Fprint(w, \"\\n\")\n\tfor _, cwf := range wfList {","sourceCodeStart":45,"sourceCodeEnd":81,"githubUrl":"https://github.com/argoproj/argo-workflows/blob/35bff19146f5a6ada77468c431f2624bd577e373/cmd/argo/commands/cron/list.go#L45-L81","documentation":"The 'argo cron list' command only supports the '', 'wide', and 'name' output modes; any other --output value reaches this default branch of the switch and is rejected. It fires when a user passes an unsupported output format (e.g. json or yaml) to argo cron list, which this command does not implement.","triggerScenarios":"Thrown at cmd/argo/commands/cron/list.go:63 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use one of: (default), wide, or name for --output"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"35bff19146f5a6ada77468c431f2624bd577e373","analyzedAt":"2026-09-03T19:34:35.908Z","contentChangedAt":"2026-09-03T19:34:35.908Z","schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}