update
authorDan White <dan@whiteaudio.com>
Thu, 10 Jan 2013 22:14:22 +0000 (16:14 -0600)
committerDan White <dan@whiteaudio.com>
Thu, 10 Jan 2013 22:14:22 +0000 (16:14 -0600)
tag

diff --git a/tag b/tag
index fffa5b5845fff9f8eb238d2af4334446a5c5445e..c4e7a801d18fda3974eb8b4ed4c55280c0cd5a69 100755 (executable)
--- 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: