tinyhumansai/openhuman · error

missing value for --content

Error message

missing value for --content

What it means

The tree-summarizer option parser encountered `--content` (or `-c`) as the last token with no following value. The parser expects the next argv entry to be the content string; hitting end-of-args means the flag was supplied without its operand, and the parse aborts before subcommand execution.

Source

Thrown at src/openhuman/memory/tree/tree_runtime/cli.rs:58

    content: Option<String>,
    file: Option<String>,
    node_id: Option<String>,
}

fn parse_opts(args: &[String]) -> Result<(CliOpts, Vec<String>)> {
    let mut verbose = false;
    let mut content: Option<String> = None;
    let mut file: Option<String> = None;
    let mut node_id: Option<String> = None;
    let mut rest = Vec::new();
    let mut i = 0;

    while i < args.len() {
        match args[i].as_str() {
            "--content" | "-c" => {
                let val = args
                    .get(i + 1)
                    .ok_or_else(|| anyhow::anyhow!("missing value for --content"))?;
                content = Some(val.clone());
                i += 2;
            }
            "--file" | "-f" => {
                let val = args
                    .get(i + 1)
                    .ok_or_else(|| anyhow::anyhow!("missing value for --file"))?;
                file = Some(val.clone());
                i += 2;
            }
            "--node-id" | "--node" => {
                let val = args
                    .get(i + 1)
                    .ok_or_else(|| anyhow::anyhow!("missing value for --node-id"))?;
                node_id = Some(val.clone());
                i += 2;
            }
            "-v" | "--verbose" => {

View on GitHub (pinned to 7491200858)

Solutions

  1. Supply a value after --content, e.g. `--content "some text"`
  2. Use --file path instead if the content is large
  3. Check quoting — a consumed next token may have been eaten by the shell
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at src/openhuman/memory/tree/tree_runtime/cli.rs:58 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of tinyhumansai/openhuman@7491200858 (2026-08-17). Data as JSON: /api/errors/4ea0d260a260c8bc. Report an issue: GitHub.