static int Main(string[] args) { try { var sce = new SelfCompilingExecutable(FS.GetExecutable()); if (args.Length >= 1 && string.Equals(args[0], "watch")) { sce.Watch(); return(0); } else { return(sce.Run().Result); } } catch (Exception e) { Console.Error.WriteLine(e); return(-1); } }
static string GetSourceDir() { return(FS.GetExecutable() + ".src"); }