zeroclaw-labs/zeroclaw · error · anyhow::Error

Value required. Usage: zeroclaw config set {path} <value>

Error message

Value required. Usage: zeroclaw config set {path} <value>

What it means

Error "Value required. Usage: zeroclaw config set {path} <value>" thrown in zeroclaw-labs/zeroclaw.

Source

Thrown at src/main.rs:5682

                                        arr.iter()
                                            .filter_map(|x| x.as_str().map(|s| s.to_string()))
                                            .collect()
                                    })
                            })
                            .unwrap_or_default();
                        let editor_content = current_items.join("\n");
                        let edited = dialoguer::Editor::new()
                            .edit(&editor_content)?
                            .unwrap_or(editor_content);
                        let val = edited
                            .lines()
                            .map(|l| l.trim())
                            .filter(|l| !l.is_empty())
                            .collect::<Vec<_>>()
                            .join(", ");
                        config.set_prop_persistent(&path, &val)?;
                    } else {
                        anyhow::bail!("Value required. Usage: zeroclaw config set {path} <value>");
                    }
                }
                Box::pin(config.save_dirty()).await?;
                if let Some(c) = comment.as_ref()
                    && !c.is_empty()
                {
                    apply_comment_inline(&config.config_path, &path, c).await?;
                }
                if json {
                    let envelope = if Config::prop_is_secret(&path) {
                        serde_json::json!({"path": path, "populated": true})
                    } else {
                        let value_str = config.get_prop(&path).unwrap_or_default();
                        serde_json::json!({"path": path, "value": value_str})
                    };
                    println!("{}", serde_json::to_string_pretty(&envelope)?);
                } else {
                    println!(

View on GitHub (pinned to 88bb9c8533)

Solutions

  1. Provide the value: `zeroclaw config set <path> <value>`.
  2. Quote values containing spaces so they are passed as a single argument.

When it happens

Trigger: Thrown at src/main.rs:5682 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of zeroclaw-labs/zeroclaw@88bb9c8533 (2026-08-23). Data as JSON: /api/errors/642863a4faa77622. Report an issue: GitHub.