From 17d04029c500c322df32536a9be81c7a484ca93a Mon Sep 17 00:00:00 2001 From: Johannes Findeisen Date: Sun, 18 Aug 2024 02:03:29 +0200 Subject: [PATCH] Added examples to README.md. --- README.md | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/README.md b/README.md index 361d56d..0f928f2 100644 --- a/README.md +++ b/README.md @@ -44,6 +44,28 @@ Options: Returns 0 on success, 1 otherwise. +## Examples: + +### Interactive mode: + +``` +checkpw -i +``` + +### Interactive mode only asking for a password: + +``` +checkpw -u hanez -i +``` + +### None interactive mode with username and password provided as parameters: + +``` +checkpw -u hanez -p password +``` + +### Request the result from the above commands: + ``` echo $? ```