multica-ai/multica · error
--type is required
Error message
--type is required
What it means
Error "--type is required" thrown in multica-ai/multica.
Source
Thrown at server/cmd/multica/cmd_property.go:313
if err != nil {
return err
}
output, _ := cmd.Flags().GetString("output")
if output == "json" {
return cli.PrintJSON(os.Stdout, property)
}
printPropertyTable([]propertyDTO{property})
return nil
}
func runPropertyCreate(cmd *cobra.Command, _ []string) error {
name, _ := cmd.Flags().GetString("name")
propType, _ := cmd.Flags().GetString("type")
if name == "" {
return fmt.Errorf("--name is required")
}
if propType == "" {
return fmt.Errorf("--type is required")
}
description, _ := cmd.Flags().GetString("description")
icon, _ := cmd.Flags().GetString("icon")
optionFlags, _ := cmd.Flags().GetStringArray("option")
body := map[string]any{"name": name, "type": propType, "description": description, "icon": icon}
if len(optionFlags) > 0 {
body["config"] = map[string]any{"options": parseOptionFlags(optionFlags, nil)}
}
client, err := newAPIClient(cmd)
if err != nil {
return err
}
ctx, cancel := cli.APIContext(context.Background())
defer cancel()
var created propertyDTOView on GitHub (pinned to 2c0912b6ec)
Solutions
- Pass --type with the property type.
When it happens
Trigger: Thrown at server/cmd/multica/cmd_property.go:313 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of multica-ai/multica@2c0912b6ec (2026-08-15).
Data as JSON: /api/errors/d6c261dfd338147e.
Report an issue: GitHub.