I decided to return a code, 0 if success and 1 if error

This commit is contained in:
2023-04-16 21:02:20 +02:00
parent 15ce2f3211
commit b74bb2fcdd

View File

@@ -22,6 +22,12 @@ class Program
case "help": case "help":
HelpMessage(); HelpMessage();
break; break;
case "list":
if (ListPasswords() == 1)
{
return 1;
}
break;
default: default:
HelpMessage(); HelpMessage();
break; break;
@@ -31,7 +37,7 @@ class Program
return 0; return 0;
} }
static void ListPasswords() static int ListPasswords()
{ {
} }