Navigation Menu

Skip to content

Commit

Permalink
Add support for /define:foo=bar
Browse files Browse the repository at this point in the history
The documentation has an example of this and oddly the code
was in implemented. So I figured we should probably support it :)
  • Loading branch information
dellis1972 committed Feb 5, 2017
1 parent e155a38 commit 9f3d9f9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions Tools/MGCB/CommandLineParser.cs
Expand Up @@ -281,6 +281,18 @@ private IEnumerable<string> Preprocess(IEnumerable<string> args)
continue;
}

if (arg.StartsWith("/define:") || arg.StartsWith("-define:"))
{
var words = arg.Substring(8).Split('=');
var name = words[0];
var value = words[1];

_properties[name] = value;

continue;

}

if (arg.StartsWith("/@:") || arg.StartsWith("-@:"))
{
var file = arg.Substring(3);
Expand Down

0 comments on commit 9f3d9f9

Please sign in to comment.