Skip to content

Commit

Permalink
EIM-120 skip cli params which are empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
Petr Gadorek authored and Hahihula committed Jan 31, 2025
1 parent 232c6f4 commit ee30462
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ config = "0.14.0"
toml = "0.8"
uuid = {version="1.10.0", features = ["v4"]}
tempfile = "3.2"
anyhow = "^1.0"
rust_search = "2.1.0"

rustpython-vm = { git = "https://github.com/Hahihula/RustPython.git", branch = "test-rust-build", features = ["freeze-stdlib"], optional = true }
rustpython-stdlib = { git = "https://github.com/Hahihula/RustPython.git", branch = "test-rust-build", features = ["ssl-vendor"], optional = true }
anyhow = "^1.0"
rust_search = "2.1.0"
3 changes: 3 additions & 0 deletions src/settings.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ impl Settings {

for (key, value) in cli_settings {
if let Some(v) = value {
if v.to_string().len() < 1 as usize {
continue;
}
if key != "config" {
cfg.set(&key, v)?;
}
Expand Down

0 comments on commit ee30462

Please sign in to comment.