From b9d2e816a5e81defe3a17fc35c7f869a20941dea Mon Sep 17 00:00:00 2001 From: Atsukoro1 Date: Tue, 6 Dec 2022 09:01:19 +0100 Subject: [PATCH] =?UTF-8?q?feat:=20=F0=9F=8E=B8=20Improved=20README.md=20a?= =?UTF-8?q?nd=20Arguments=20handler?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Make it clear to for user to acquire info about how to use specific commands --- README.md | 3 ++- src/helpers/arguments.rs | 6 +++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 3232aec..f2e8aef 100644 --- a/README.md +++ b/README.md @@ -36,8 +36,9 @@ ## 🔧 Using +Example: ```bash -ponyfetch [OPTION] +ponyfetch -c=blue -p=rainbowdash_large ``` | Option | Description | Type | Default | Required? | diff --git a/src/helpers/arguments.rs b/src/helpers/arguments.rs index a5b6b39..92c74de 100644 --- a/src/helpers/arguments.rs +++ b/src/helpers/arguments.rs @@ -38,9 +38,9 @@ impl Arguments { println!("Prints a pony with system information."); println!(" -h, --help Display this help and exit - -c, --color Set the color of the pony - -l, --list List all available ponies - -p, --pony Set the pony to display + -c=, --color= Set the color of the pony + -l=, --list= List all available ponies + -p=, --pony= Set the pony to display "); std::process::exit(0);