{"record":{"id":"f5f2c720f8cdb4ea","repo":"tinyhumansai/openhuman","slug":"missing-file-argument-use-a-file-path-or-for","errorCode":null,"errorMessage":"missing file argument. Use a file path or '-' for stdin.","messagePattern":"missing file argument\\. Use a file path or '-' for stdin\\.","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"src/core/memory_cli.rs","lineNumber":126,"sourceCode":"                println!(\"Usage: openhuman memory ingest <file|-> [options]\");\n                println!();\n                println!(\"  <file>               Path to file to ingest (use '-' for stdin)\");\n                println!(\"  -n, --namespace <ns>  Target namespace (default: 'cli')\");\n                println!(\"  -k, --key <key>       Document key for dedup (default: filename)\");\n                println!(\"  -t, --title <title>   Document title (default: filename)\");\n                println!(\"  -v, --verbose         Enable debug logging\");\n                return Ok(());\n            }\n            other if file_path.is_none() && (!other.starts_with('-') || other == \"-\") => {\n                file_path = Some(other.to_string());\n                i += 1;\n            }\n            other => return Err(anyhow::anyhow!(\"unknown ingest arg: {other}\")),\n        }\n    }\n\n    let file_path = file_path.ok_or_else(|| {\n        anyhow::anyhow!(\"missing file argument. Use a file path or '-' for stdin.\")\n    })?;\n\n    crate::core::logging::init_for_cli_run(verbose, crate::core::logging::CliLogDefault::Global);\n\n    let content = read_input(&file_path)?;\n    let doc_key = key.unwrap_or_else(|| file_path.clone());\n    let doc_title = title.unwrap_or_else(|| {\n        if file_path == \"-\" {\n            \"stdin-input\".to_string()\n        } else {\n            PathBuf::from(&file_path)\n                .file_name()\n                .map(|n| n.to_string_lossy().to_string())\n                .unwrap_or_else(|| file_path.clone())\n        }\n    });\n\n    eprintln!(","sourceCodeStart":108,"sourceCodeEnd":144,"githubUrl":"https://github.com/tinyhumansai/openhuman/blob/a221052e0df5b1f7598fceba7329fd1af95d6699/src/core/memory_cli.rs#L108-L144","documentation":"Error \"missing file argument. Use a file path or '-' for stdin.\" thrown in tinyhumansai/openhuman.","triggerScenarios":"Thrown at src/core/memory_cli.rs:126 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"a221052e0df5b1f7598fceba7329fd1af95d6699","analyzedAt":"2026-08-16T12:47:06.542Z","schemaVersion":2},"datasetVersion":"2026-08-16T13:17:31.715Z"}