public new void Execute(FigaroContext context, string args) { args = args.Replace("\"\"", "{blank}"); args = args.Replace("''", "{blank}"); base.Execute(context, args); ValidateArgCount(3, 5); ValidateIndexDescription(argv[0]); if (argv.Length == 5) { context.LookupIndex( argv[0].Replace("{blank}", string.Empty), argv[1].Replace("{blank}", string.Empty), argv[2].Replace("{blank}", string.Empty), argv[3].Replace("{blank}", string.Empty), argv[4].Replace("{blank}", string.Empty) ); } else if (argv.Length == 3) { context.LookupIndex( argv[0].Replace("{blank}", string.Empty), argv[1].Replace("{blank}", string.Empty), argv[2].Replace("{blank}", string.Empty), string.Empty, string.Empty ); } else { throw new ValidationException("Invalid number of arguments."); } }