mirror of
https://github.com/bloxstraplabs/bloxstrap.git
synced 2025-04-21 10:01:27 -07:00
ignore duplicate flags
This commit is contained in:
parent
7a539acfcf
commit
68556c42b4
@ -119,6 +119,12 @@ namespace Bloxstrap
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (flag.Active)
|
||||||
|
{
|
||||||
|
App.Logger.WriteLine(LOG_IDENT, $"Tried to set {identifier} flag twice");
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
flag.Active = true;
|
flag.Active = true;
|
||||||
|
|
||||||
if (i < Args.Length - 1 && Args[i+1] is string nextArg && !nextArg.StartsWith('-'))
|
if (i < Args.Length - 1 && Args[i+1] is string nextArg && !nextArg.StartsWith('-'))
|
||||||
|
Loading…
Reference in New Issue
Block a user