Skip to content

Commit

Permalink
Merge pull request #134 from pleshevskiy/fix-decrypt
Browse files Browse the repository at this point in the history
cli/decrypt: fix matching autogenerate arg
  • Loading branch information
brxken128 authored Jul 15, 2022
2 parents 8544b78 + 5ae02e7 commit 88797bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dexios/src/global/parameters.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pub fn parameter_handler(sub_matches: &ArgMatches) -> Result<CryptoParams> {
)
} else if std::env::var("DEXIOS_KEY").is_ok() {
Key::Env
} else if sub_matches.is_present("autogenerate") {
} else if let Ok(true) = sub_matches.try_contains_id("autogenerate") {
Key::Generate
} else {
Key::User
Expand Down

0 comments on commit 88797bb

Please sign in to comment.