private static void CalculateOperation(string[] args) { OperationType operationType = GetOperationType(args[0]); if (operationType == OperationType.Unknown) { Console.WriteLine("Error parsing the operation (first) parameter. Expected one of these: [-a,-s,-m,-d]\nUse \"help\" as first parameter for more info."); return; } InputParameters inputParams = ParseArguments(args); Calculator calc = new Calculator(inputParams); calc.RunOperation(operationType); }