static void Main(string[] args) { if (args.Length == 0) { Console.WriteLine("No path to aux file give."); Console.WriteLine(@" for d:\docs\bib.aux use following line:"); Console.WriteLine(@" BibtexSharp.exe d:\docs\bib"); Console.WriteLine(); return; } BBLGenerator bg = new BBLGenerator(); bg.LoadAUXFile(args[0] + ".aux"); bg.LoadBIBFile(bg.BibDataFile + ".bib"); bg.Stats(); bg.Generate(args[0] + ".bbl"); }