enhance --select, add --no-header option

This commit is contained in:
Christophe Benz 2010-07-10 03:27:41 +02:00
commit e4b789d340
6 changed files with 33 additions and 22 deletions

View file

@ -38,4 +38,5 @@ class SimpleFormatter(IFormatter):
return self.field_separator.join(u'%s%s' % ((u'%s%s' % (k, self.key_value_separator) if self.display_keys else ''), v) for k, v in item.iteritems())
def set_header(self, string):
print string.encode('utf-8')
if self.display_header:
print string.encode('utf-8')