# XXX there must be a better way to get Unicode argv
# XXX this doesn't work on Windows durp
- enc = sys.stdin.encoding
+ enc = sys.stdin.encoding or 'utf8'
args = [_.decode(enc) for _ in args]
# Find the command as a function in this file
print "Fuzzy-matched:"
for result in results:
- print "%s: %s" % (result.object.__tablename__, result.object.name),
+ if hasattr(result.object, 'full_name'):
+ name = result.object.full_name
+ else:
+ name = result.object.name
+
+ print "%s: %s" % (result.object.__tablename__, name),
if result.language:
print "(%s in %s)" % (result.name, result.language)
else: