private bool CheckSchemaFlags(ISchema schema, string args) { var flagsList = StringParser.GetInputFlags(args); if (!StringValidator.CheckForRepeatingFlags(flagsList)) { throw new Exception(); } foreach (string flag in flagsList) { if (!schema.GetSchema.TryGetValue(flag, out Type type)) { throw new Exception(); } } return(true); }