Is Flag Set In the Command Line
using System; namespace Util { public static class Args { public static bool IsFlagSet(string flag) { return flag == Array.Find(Environment.GetCommandLineArgs(), s => s == flag); } } }