static void Main(string[] args) { Console.WriteLine("Test the SL900A Get Calibration Value function in the Mercury API"); if (1 > args.Length) { Usage(); } else { for (int nextarg = 1; nextarg < args.Length; nextarg++) { string arg = args[nextarg]; if (arg.Equals("--ant")) { if (null != antennaList) { Console.WriteLine("Duplicate argument: --ant specified more than once"); Usage(); } antennaList = ParseAntennaList(args, nextarg); nextarg++; } else { Console.WriteLine("Argument {0}:\"{1}\" is not recognized", nextarg, arg); Usage(); } } //Create the test object SL900AGetCalibrationValueTest test = new SL900AGetCalibrationValueTest(); //Pass the reader uri to the object test.run(args[0]); } }
static void Main(string[] args) { Console.WriteLine("Test the SL900A Get Calibration Value function in the Mercury API"); if (args.Length != 1) { //If the user did not supply the reader uri command arg, display this message Console.WriteLine("Must provide reader uri"); Console.WriteLine("Sl900AGetCalibrationValueTest.exe [reader]"); } else { //Create the test object SL900AGetCalibrationValueTest test = new SL900AGetCalibrationValueTest(); //Pass the reader uri to the object test.run(args[0]); } }