Adding Main method, only help message is handled now
This commit is contained in:
@@ -3,9 +3,32 @@ namespace CLI;
|
|||||||
|
|
||||||
class Program
|
class Program
|
||||||
{
|
{
|
||||||
static void Main(string[] args)
|
|
||||||
static string BINARY_NAME = "pass";
|
static string BINARY_NAME = "pass";
|
||||||
|
|
||||||
|
static int Main(string[] args)
|
||||||
{
|
{
|
||||||
|
//ConfigFileManager.ExceptionOccured += (e) => ErrorOccured(e);
|
||||||
|
//ConfigFileManager.Init();
|
||||||
|
|
||||||
|
if (args.Length == 0)
|
||||||
|
{
|
||||||
|
ListPasswords();
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
switch (args[0])
|
||||||
|
{
|
||||||
|
case "help":
|
||||||
|
HelpMessage();
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
HelpMessage();
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user