Add launch args
This commit is contained in:
24
Program.cs
24
Program.cs
@@ -15,6 +15,30 @@ namespace WaveshareUARTFingerprintSensor.Sample
|
||||
class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
if (args.Length > 0)
|
||||
{
|
||||
switch (args[0])
|
||||
{
|
||||
case "-c":
|
||||
case "--config":
|
||||
StartConfig();
|
||||
|
||||
Environment.Exit(0);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
StartLoop();
|
||||
}
|
||||
|
||||
private static void StartLoop()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
private static void StartConfig()
|
||||
{
|
||||
Application.Run<TUIManager>();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user