From b74bb2fcdd4831e9f7e1dd65519f1e148df3db89 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miskolczi=20Rich=C3=A1rd?= Date: Sun, 16 Apr 2023 21:02:20 +0200 Subject: [PATCH] I decided to return a code, 0 if success and 1 if error --- CLI/Program.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/CLI/Program.cs b/CLI/Program.cs index 7060a11..e697404 100644 --- a/CLI/Program.cs +++ b/CLI/Program.cs @@ -22,6 +22,12 @@ class Program case "help": HelpMessage(); break; + case "list": + if (ListPasswords() == 1) + { + return 1; + } + break; default: HelpMessage(); break; @@ -31,7 +37,7 @@ class Program return 0; } - static void ListPasswords() + static int ListPasswords() { }