Beispiel #1
0
 static void Main(String[] args)
 {
     if (args.Length < 2)
     {
         Log("Usage\nScriptsRefactorer.exe in.fos out.fos [-lf]");
         return;
     }
     newline = "\r\n";
     filename = args[0];
     Fixargs = false;
     for (int i = 2; i < args.Length; i++) ProcessArg(args[i]);
     Tokenizer tokenizer = new Tokenizer(args[0], newline);
     if(!tokenizer.Parse())
         Log("Failed to parse the file.");
     else
         tokenizer.Save(args[1]);
     Log("Finished.");
 }