{"record":{"id":"cf687f6973ea92bd","repo":"larksuite/cli","slug":"args-field-s-s-s-s-conflicts-with-s-fl","errorCode":null,"errorMessage":"Args field %s (--%s): %s --%s conflicts with %s flag --%s","messagePattern":"Args field (.+?) \\(--(.+?)\\): (.+?) --(.+?) conflicts with (.+?) flag --(.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"shortcuts/common/typed_flag_collisions.go","lineNumber":66,"sourceCode":"\t}\n\tif hasFlagSchema {\n\t\taliasConflicts[\"print-schema\"] = \"framework complex-input introspection\"\n\t\taliasConflicts[\"flag-name\"] = \"framework complex-input introspection\"\n\t}\n\n\tfor _, field := range command.fields {\n\t\tif reason, conflict := primaryConflicts[field.name]; conflict {\n\t\t\treturn fmt.Errorf(\"Args field %s (--%s): business flag conflicts with %s flag --%s\", field.goName, field.name, reason, field.name)\n\t\t}\n\t\tfor _, alias := range field.cli.Aliases {\n\t\t\tconflicts := primaryConflicts\n\t\t\tkind := \"independent alias\"\n\t\t\tif alias.Mode == typedAliasNormalize {\n\t\t\t\tconflicts = aliasConflicts\n\t\t\t\tkind = \"normalize alias\"\n\t\t\t}\n\t\t\tif reason, conflict := conflicts[alias.Name]; conflict {\n\t\t\t\treturn fmt.Errorf(\"Args field %s (--%s): %s --%s conflicts with %s flag --%s\", field.goName, field.name, kind, alias.Name, reason, alias.Name)\n\t\t\t}\n\t\t}\n\t}\n\treturn nil\n}\n","sourceCodeStart":48,"sourceCodeEnd":72,"githubUrl":"https://github.com/larksuite/cli/blob/7fd6ef3c07182257ce776cdc5a614e122d5bd4b3/shortcuts/common/typed_flag_collisions.go#L48-L72","documentation":"Flag-mount plan validation: a typed Args flag (primary name or alias) conflicts with another flag class (host/framework/business) under the same spelling after normalization, including print-schema/flag-name framework introspection aliases.","triggerScenarios":"Thrown at shortcuts/common/typed_flag_collisions.go:66 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Rename the alias away from the framework flag"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"7fd6ef3c07182257ce776cdc5a614e122d5bd4b3","analyzedAt":"2026-09-04T21:17:44.649Z","contentChangedAt":"2026-09-04T21:17:44.649Z","schemaVersion":2},"datasetVersion":"2026-09-12T02:17:10.037Z"}