Skip to content

Commit

Permalink
Update ProcessArgs.
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbound committed Apr 20, 2020
1 parent 51bf9e2 commit 1fbd60d
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions ScreenCast.Core/Conductor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,7 @@ public void ProcessArgs(string[] args)
var value = args?[i + 1];
if (value != null)
{
if (value.StartsWith("-"))
{
ArgDict.Add(key, "true");
i -= 1;
}
else
{
ArgDict.Add(key, args[i + 1].Trim());
}
ArgDict.Add(key, args[i + 1].Trim());
}
}
}
Expand Down

0 comments on commit 1fbd60d

Please sign in to comment.