From ec143358c1ff6efaf74e1367465a18408cb8922c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miskolczi=20Rich=C3=A1rd?= Date: Sun, 16 Apr 2023 20:46:24 +0200 Subject: [PATCH] Help message method --- CLI/Program.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/CLI/Program.cs b/CLI/Program.cs index b41a8e5..f987495 100644 --- a/CLI/Program.cs +++ b/CLI/Program.cs @@ -41,5 +41,16 @@ class Program Console.WriteLine($"The following error occured while trying to load your profile:\n{e}\nMore details:\n{e.ToString()}"); } + static void HelpMessage() + { + Console.WriteLine($"Usage: {BINARY_NAME} [optional arguments]"); + Console.WriteLine("\nArguments:"); + Console.WriteLine("\t- list:\t\t\tlist all passwords; this is the default action"); + Console.WriteLine("\t- :\t\tdecrypt password and copy it to clipboard"); + Console.WriteLine($"\t- new :\t\tgenerate password\n\t\t[length]:\tthe length of the password, default is {PasswordGenerator.DEFAULT_LENGTH}\n\t\t[true|false]:\twhether the password should include symbols, default is true"); + Console.WriteLine($"\t- rm :\tdelete password"); + Console.WriteLine($"\t- insert :\tinstead of generating the password, you enter its contents"); + Console.WriteLine($"\t- find :\tlist password that match your query"); + Console.WriteLine($"\t- edit :\tedit the contents of an existing password"); } }