feat(cli): add value_delimiter to supply multiple config files (#612)

Refs: #612
This commit is contained in:
N4CH723HR3R
2026-01-21 12:35:31 +01:00
committed by GitHub
parent 9df9886105
commit 541c0cb90e
+3 -1
View File
@@ -44,7 +44,9 @@ pub struct Cli {
/// configuration file. Other paths are merged with the first one,
/// which allows you to separate your public config from your
/// private(s) one(s).
#[arg(short, long = "config", global = true, env = "HIMALAYA_CONFIG")]
/// you can also provide multiple paths by delimiting them with a :
/// like you would when setting $PATH in a posix shell
#[arg(short, long = "config", global = true, env = "HIMALAYA_CONFIG", value_delimiter = ':')]
#[arg(value_name = "PATH", value_parser = path_parser)]
pub config_paths: Vec<PathBuf>,