Skip to content

Commit

Permalink
Treat empty "-" as argument, not flag
Browse files Browse the repository at this point in the history
  • Loading branch information
HorridModz committed Jun 22, 2023
1 parent 0d93961 commit f9ac92c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dnSpy.Theme.Installer/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ private static int Main(string[] args)
string? flagName = null;
foreach (var arg in args)
{
if (arg.StartsWith('-'))
if (arg.StartsWith('-') && arg.Length > 1)
{
//Flag
if (flagName != null)
Expand Down

0 comments on commit f9ac92c

Please sign in to comment.