mirror of
https://github.com/pimalaya/himalaya.git
synced 2026-06-16 20:57:53 +08:00
feat(cli): add value_delimiter to supply multiple config files (#612)
Refs: #612
This commit is contained in:
+3
-1
@@ -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>,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user