Cosmos/source2/Build/Cosmos.Build.Builder/App.xaml.cs
kudzu_cp b89fbc7de7
2012-07-09 03:53:15 +00:00

32 lines
1,015 B
C#

using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;
namespace Cosmos.Build.Builder {
public partial class App : Application {
public static bool IsUserKit;
public static bool ResetHive;
public static bool StayOpen;
public static bool UseTask;
public static bool InstallTask;
public static bool IgnoreVS;
protected override void OnStartup(StartupEventArgs e) {
var xArgs = new string[e.Args.Length];
for (int i = 0; i < xArgs.Length; i++) {
xArgs[i] = e.Args[i].ToUpper();
}
IsUserKit = xArgs.Contains("-USERKIT");
ResetHive = xArgs.Contains("-RESETHIVE");
StayOpen = xArgs.Contains("-STAYOPEN");
UseTask = !xArgs.Contains("-NOTASK");
InstallTask = xArgs.Contains("-INSTALLTASK");
// For use during dev of Builder only.
IgnoreVS = xArgs.Contains("-IGNOREVS");
base.OnStartup(e);
}
}
}