+def command_lookup(engine_uri, name):
+ # XXX don't require uri! somehow
+ session = connect(engine_uri)
+
+ results, exact = pokedex_lookup(session, name)
+ if exact:
+ print "Matched:"
+ else:
+ print "Fuzzy-matched:"
+
+ for object in results:
+ print object.__tablename__, object.name
+