{"record":{"id":"f0a3e81fa897f2c4","repo":"dbt-labs/dbt-core","slug":"hidden-artifact-flags-must-remain-accepted","errorCode":null,"errorMessage":"hidden artifact flags must remain accepted","messagePattern":"hidden artifact flags must remain accepted","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"crates/dbt-clap-core/src/lib.rs","lineNumber":3260,"sourceCode":"            );\n        }\n        assert!(\n            help.contains(\"--generate-info-schema\"),\n            \"public artifacts flag must remain in --help, got:\\n{help}\"\n        );\n        assert!(\n            help.contains(\"--write-catalog\"),\n            \"--write-catalog stays in --help, got:\\n{help}\"\n        );\n\n        let parsed = CommonArgs::try_parse_from([\n            \"dbt\",\n            \"--write-catalog\",\n            \"--write-lineage\",\n            \"--write-index\",\n            \"--write-metadata\",\n        ])\n        .expect(\"hidden artifact flags must remain accepted\");\n        assert!(parsed.write_catalog);\n        assert!(parsed.write_lineage);\n        assert!(parsed.write_index);\n        assert!(parsed.write_metadata);\n\n        assert!(\n            CommonArgs::try_parse_from([\"dbt\", \"--lineage\"]).is_err(),\n            \"--lineage is not a clap flag\"\n        );\n    }\n\n    #[test]\n    fn show_info_parses_and_conflicts_with_inline() {\n        let parsed = ShowArgs::try_parse_from([\"show\", \"--info\", \"models\"])\n            .expect(\"--info must parse on show\");\n        assert_eq!(parsed.info.as_deref(), Some(\"models\"));\n\n        assert!(","sourceCodeStart":3242,"sourceCodeEnd":3278,"githubUrl":"https://github.com/dbt-labs/dbt-core/blob/0267ce9170576975b76b64ce856b2e5848e96617/crates/dbt-clap-core/src/lib.rs#L3242-L3278","documentation":"Test-only assertion: the hidden artifact flags (--write-catalog, --write-lineage, --write-index, --write-metadata) must still be accepted by the CLI parser even though they are hidden from --help. Fires only if one of these flags is removed or renamed in the clap definition.","triggerScenarios":"Thrown at crates/dbt-clap-core/src/lib.rs:3260 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Restore the hidden flag in the CommonArgs clap definition","Keep the hidden artifact flags in sync with the artifacts subsystem","Update the test if a flag is intentionally retired"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"0267ce9170576975b76b64ce856b2e5848e96617","analyzedAt":"2026-09-07T21:53:39.732Z","contentChangedAt":"2026-09-07T21:53:39.732Z","schemaVersion":2},"datasetVersion":"2026-09-17T15:17:12.973Z"}