Skip to content

Commit

Permalink
Merge pull request #467 from gl-yziquel/yziquel
Browse files Browse the repository at this point in the history
Enabling HIMALAYA_CONFIG to locate configuration file.
  • Loading branch information
soywod authored May 27, 2024
2 parents 7a951b4 + 1b35da2 commit f1371f4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ pgp-native = ["email-lib/pgp-native", "mml-lib/pgp-native", "pgp"]
[dependencies]
ariadne = "0.2"
async-trait = "0.1"
clap = { version = "4.4", features = ["derive", "wrap_help"] }
clap = { version = "4.4", features = ["derive", "wrap_help", "env"] }
clap_complete = "4.4"
clap_mangen = "0.2"
color-eyre = "0.6.3"
Expand Down
2 changes: 1 addition & 1 deletion src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ 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)]
#[arg(short, long = "config", global = true, env = "HIMALAYA_CONFIG")]
#[arg(value_name = "PATH", value_parser = config::path_parser)]
pub config_paths: Vec<PathBuf>,

Expand Down

0 comments on commit f1371f4

Please sign in to comment.