From fbd8adf9dd98dce07f16255f01a1a0fe630500df Mon Sep 17 00:00:00 2001 From: Dan White Date: Thu, 10 Jan 2013 16:14:22 -0600 Subject: [PATCH] update --- tag | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tag b/tag index fffa5b5..c4e7a80 100755 --- a/tag +++ b/tag @@ -44,7 +44,7 @@ optParser.add_option('-l', '--list', dest='list', action='store_true', default=False, help="list tags in all folders which have them") -optParser.add_option('-t', '--tag', dest='tag', action='store', type='string', +optParser.add_option('-s', '--search', dest='search', action='store', type='string', help='list folders which have given comma-sep tag(s)') optParser.add_option('-r', '--recurse', dest='recurse', action='store_true', @@ -150,8 +150,8 @@ def main(): #print '\n'.join(alltags[t]) else: print '\n'.join(listTags(walkDir)) - elif opt.tag: - for t in opt.tag.split(',') + taglist: + elif opt.search: + for t in opt.search.split(',') + taglist: print findTag(t, walkDir) elif opt.add: for t in opt.add.split(',') + taglist: -- 2.25.1