fixed list flag not correctly exiting

This commit is contained in:
Valerie Wolfe 2022-06-27 19:26:22 -04:00
parent 72fbc37687
commit bc015a169d
2 changed files with 3 additions and 2 deletions

View file

@ -1,6 +1,6 @@
[package]
name = "config"
version = "0.0.1"
version = "0.0.2"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View file

@ -15,7 +15,7 @@ use toml::Value;
mod error;
pub const VERSION: &str = "0.0.1";
pub const VERSION: &str = "0.0.2";
fn main() -> Result<(), Box<dyn Error>>{
let home_dir = var("HOME").unwrap();
@ -61,6 +61,7 @@ fn main() -> Result<(), Box<dyn Error>>{
for key in config.keys() {
println!("{}", key);
}
return Ok(());
}
let entry = &args[args.len() - 1];