mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-19 00:51:30 -07:00
ignore duplicate flags
This commit is contained in:
parent
7a539acfcf
commit
68556c42b4
@ -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('-'))
|
||||
|
Loading…
Reference in New Issue
Block a user