PR: #30 (feat/05-clap-cli)
File: crates/charon-cli/src/main.rs
Line: ~22
Problem:
#[arg(long, short = 'c', default_value = "config/default.toml")]
config: PathBuf,
Resolves relative to process cwd at runtime. Hetzner Docker deploy (PR #55 compose stack) may have binary WORKDIR different from repo root, silently loading wrong file or emitting confusing relative-path error.
Fix: Remove default; require explicit flag or env var:
#[arg(long, short = 'c', env = "CHARON_CONFIG")]
config: PathBuf,
Forcing explicit config also prevents running with stale default in production.
PR: #30 (feat/05-clap-cli)
File: crates/charon-cli/src/main.rs
Line: ~22
Problem:
Resolves relative to process cwd at runtime. Hetzner Docker deploy (PR #55 compose stack) may have binary WORKDIR different from repo root, silently loading wrong file or emitting confusing relative-path error.
Fix: Remove default; require explicit flag or env var:
Forcing explicit config also prevents running with stale default in production.