static void Main(string[] args) { if (args.Length != 1) { Console.WriteLine("Usage: Recipe4_2 [IP prefix, i.e. 192.168.1]"); } else { ScanSites d = new ScanSites(); d.scan(args[0]); } }