ignore duplicate flags

This commit is contained in:
bluepilledgreat 2025-03-11 22:33:10 +00:00
parent 7a539acfcf
commit 68556c42b4

View File

@ -119,6 +119,12 @@ namespace Bloxstrap
continue;
}
if (flag.Active)
{
App.Logger.WriteLine(LOG_IDENT, $"Tried to set {identifier} flag twice");
continue;
}
flag.Active = true;
if (i < Args.Length - 1 && Args[i+1] is string nextArg && !nextArg.StartsWith('-'))