wavfind tool

This commit is contained in:
Jamie Hardt
2022-11-26 21:06:46 -08:00
parent ea60cb21b3
commit ec85811aaa
2 changed files with 35 additions and 1 deletions

View File

@@ -19,7 +19,7 @@ class MissingDataError(RuntimeError):
def main():
parser = OptionParser()
parser.usage = 'wavinfo (--adm | --ixml) [FILES]'
parser.usage = 'wavinfo (--adm | --ixml) <FILE> +'
# parser.add_option('-f', dest='output_format', help='Set the output format',
# default='json',

34
wavinfo/wavfind.py Normal file
View File

@@ -0,0 +1,34 @@
"""
"""
from optparse import OptionParser, OptionGroup
import sys
def main():
parser = OptionParser()
parser.usage = "wavfind [--scene=SCENE] [--take=TAKE] [--desc=DESC] <PATH> +"
primaries = OptionGroup(parser, title="Search Predicates",
description="Argument values can be globs, and are logically-AND'ed.")
primaries.add_option("--scene",
help='Search for this scene',
metavar='SCENE')
primaries.add_option("--take",
help='Search for this take',
metavar='TAKE')
primaries.add_option("--desc",
help='Search descriptions',
metavar='DESC')
(options, args) = parser.parse_args(sys.argv)
if __name__ == "__main__":
main()