From bc015a169dd148056f7a395ea2d044103213eb14 Mon Sep 17 00:00:00 2001 From: Valerie Date: Mon, 27 Jun 2022 19:26:22 -0400 Subject: [PATCH] fixed list flag not correctly exiting --- Cargo.toml | 2 +- src/main.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index efaceb4..05b5538 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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 diff --git a/src/main.rs b/src/main.rs index 067be68..a37e0ba 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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>{ let home_dir = var("HOME").unwrap(); @@ -61,6 +61,7 @@ fn main() -> Result<(), Box>{ for key in config.keys() { println!("{}", key); } + return Ok(()); } let entry = &args[args.len() - 1];