From 9778cfd7f41b20fa8cd4fa669664452b963f0e97 Mon Sep 17 00:00:00 2001 From: Valerie Date: Mon, 27 Jun 2022 22:42:02 -0400 Subject: [PATCH] added missing flag text to help --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/main.rs | 5 +++++ 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ba4edcd..018e882 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -13,7 +13,7 @@ dependencies = [ [[package]] name = "config" -version = "0.1.1" +version = "0.1.2" dependencies = [ "regex", "toml", diff --git a/Cargo.toml b/Cargo.toml index 4229412..818284f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "config" -version = "0.1.2" +version = "0.1.3" 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 5b4b28d..81a7267 100644 --- a/src/main.rs +++ b/src/main.rs @@ -164,4 +164,9 @@ fn help_text() { println!("A configuration manager written in Rust.\n"); println!("USAGE:"); println!("\tconfig NAME\n"); + println!("FLAGS:"); + println!("\t-h, --help\tPrints this help text"); + println!("\t-d, --dir\tGets the directory of the config file"); + println!("\t-l, --list\tLists config sections"); + println!("\t-p, --path\tGets the path to the config file"); }