help='only show ISO [YYYY-]WK', default=None)
parser.add_option('-f', '--field-sep', dest='sep', type='str',
help='field separator', metavar='f', default='')
+parser.add_option('-i', '--ignore-case', dest='ignore_case', action='store_true',
+ help='Convert everything to lower case first', default=False)
(opt, args) = parser.parse_args()
# default match is everything if not specified
d = dt.datetime(*ri)
t = m.group('text')
+ if opt.ignore_case:
+ t = t.lower()
+
if not (d >= startdate and d <= enddate):
continue
if t == 'null':