{"record":{"id":"9d6b98dc1b01e37f","repo":"quickwit-oss/quickwit","slug":"unknown-output-format-output-format-str-suppo","errorCode":null,"errorMessage":"unknown output format `{output_format_str}`. supported formats are: `table`, `json`, and `pretty-json`","messagePattern":"unknown output format `(.+?)`\\. supported formats are: `table`, `json`, and `pretty-json`","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"quickwit/quickwit-cli/src/split.rs","lineNumber":121,"sourceCode":"        .arg_required_else_help(true)\n}\n\n#[derive(Debug, Eq, PartialEq)]\nenum OutputFormat {\n    Table, // Default\n    Json,\n    PrettyJson,\n}\n\nimpl FromStr for OutputFormat {\n    type Err = anyhow::Error;\n\n    fn from_str(output_format_str: &str) -> anyhow::Result<Self> {\n        match output_format_str {\n            \"json\" => Ok(OutputFormat::Json),\n            \"pretty-json\" | \"pretty_json\" => Ok(OutputFormat::PrettyJson),\n            \"table\" => Ok(OutputFormat::Table),\n            _ => bail!(\n                \"unknown output format `{output_format_str}`. supported formats are: `table`, \\\n                 `json`, and `pretty-json`\"\n            ),\n        }\n    }\n}\n\n#[derive(Debug, PartialEq)]\npub struct ListSplitArgs {\n    pub client_args: ClientArgs,\n    pub index_id: IndexId,\n    pub offset: Option<usize>,\n    pub limit: Option<usize>,\n    pub split_states: Option<Vec<SplitState>>,\n    pub create_date: Option<OffsetDateTime>,\n    pub start_date: Option<OffsetDateTime>,\n    pub end_date: Option<OffsetDateTime>,\n    // pub tags: Option<TagFilterAst>,","sourceCodeStart":103,"sourceCodeEnd":139,"githubUrl":"https://github.com/quickwit-oss/quickwit/blob/a39730c5cdcd1a4fe798403737ae293999ea21f8/quickwit/quickwit-cli/src/split.rs#L103-L139","documentation":"Commands that accept an output format (e.g. `split list --output`) only support `table`, `json`, and `pretty-json` (also spelled `pretty_json`). Any other value fails `from_str` conversion during argument parsing. The error enumerates the accepted values so the user can self-correct.","triggerScenarios":"Passing `--output yaml`, `--output pretty`, `--output JSON` (case-sensitive match), or any other string to a command whose `OutputFormat::from_str` is invoked.","commonSituations":"Assuming other formats like yaml/csv are supported; capitalization mismatch since matching is case-sensitive; copying `--output pretty` from another tool; shell completion absent so format names are typed by hand.","solutions":["Use one of `--output table`, `--output json`, or `--output pretty-json`.","Fix case: the match is lowercase and case-sensitive, so `JSON` must be `json`.","Pipe JSON output through an external formatter (e.g. `jq` or `yq`) if you need yaml or other formats."],"exampleFix":"// before\nquickwit split list --index my-index --output yaml\n// after\nquickwit split list --index my-index --output json | yq -P","handlingStrategy":"validation","validationCode":"const OUTPUT_FORMATS = new Set([\"table\", \"json\", \"pretty-json\", \"pretty_json\"]);\nfunction validateOutputFormat(fmt: string): string | null {\n  return OUTPUT_FORMATS.has(fmt) ? null : `unknown output format \\`${fmt}\\`; use table, json, or pretty-json`;\n}","typeGuard":"function isOutputFormat(v: string): v is \"table\" | \"json\" | \"pretty-json\" | \"pretty_json\" {\n  return [\"table\", \"json\", \"pretty-json\", \"pretty_json\"].includes(v);\n}","tryCatchPattern":null,"preventionTips":["Use the exact lowercase literals `table`, `json`, or `pretty-json`.","Define the format string once as a constant in scripts instead of typing it inline.","Remember matching is case-sensitive; never uppercase format names."],"tags":["cli","output-format","quickwit"],"backgroundTag":"invalid-enum-value","analyzedSha":"a39730c5cdcd1a4fe798403737ae293999ea21f8","analyzedAt":"2026-09-08T13:19:37.784Z","contentChangedAt":"2026-09-08T13:19:37.784Z","schemaVersion":2},"datasetVersion":"2026-09-14T11:17:12.474Z"}