mirror of
https://github.com/iluvcapra/wavinfo.git
synced 2026-01-02 09:50:41 +00:00
wavfind tool
This commit is contained in:
@@ -19,7 +19,7 @@ class MissingDataError(RuntimeError):
|
|||||||
def main():
|
def main():
|
||||||
parser = OptionParser()
|
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',
|
# parser.add_option('-f', dest='output_format', help='Set the output format',
|
||||||
# default='json',
|
# default='json',
|
||||||
|
|||||||
34
wavinfo/wavfind.py
Normal file
34
wavinfo/wavfind.py
Normal 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()
|
||||||
Reference in New Issue
Block a user