From: Dan White Date: Thu, 10 Jan 2013 22:14:22 +0000 (-0600) Subject: update X-Git-Url: http://git.whiteaudio.com/gitweb/?a=commitdiff_plain;h=fbd8adf9dd98dce07f16255f01a1a0fe630500df;p=pubbin.git update --- 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: