public static void Main(string[] args) { setd(Console.WriteLine); debug(PROGRAM + " current directory: " + Environment.CurrentDirectory + " args: " + args.Length); int c = 0; bool dohelp = false; foreach (var arg in args) { if (Test == null) { Test = new OutputDevice(0); } if (ParsePlay(Console.WriteLine, arg, ref c)) { } else if (Premixed.PlayName(_d, Test, arg)) { c++; } else if (Help.Help.isHelp(arg)) { Help.Help.GetHelp(Console.WriteLine, arg); } else { debug("No song data at: " + arg + ", no Premixed song named: " + arg); dohelp = true; } } if ((args.Length == 0) || dohelp) { Help.Help.GetHelp(Console.WriteLine, Help.HelpType.General); } if (System.Diagnostics.Debugger.IsAttached) { debug("Enter to continue..."); Console.ReadLine(); } }
static void Main() { Premixed.TestParse(Console.WriteLine, Adiago.Test); }