summaryrefslogtreecommitdiff
path: root/imdb-lookup
diff options
context:
space:
mode:
authorUser Jack <jack@garcon.2.localnet.cc>2014-11-28 19:21:01 +0000
committerUser Jack <jack@garcon.2.localnet.cc>2014-11-28 19:21:01 +0000
commitde584ca6cd1c51ef0c99bfb7dd06fb4b3bed8348 (patch)
tree4b47714779e36676366a97e2ad78050dcb898780 /imdb-lookup
parent0c7044179c9540f992642be42bac884d0a5840bd (diff)
downloadscripts-de584ca6cd1c51ef0c99bfb7dd06fb4b3bed8348.tar.gz
scripts-de584ca6cd1c51ef0c99bfb7dd06fb4b3bed8348.zip
help
Diffstat (limited to 'imdb-lookup')
-rwxr-xr-ximdb-lookup/imdbinfo.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/imdb-lookup/imdbinfo.py b/imdb-lookup/imdbinfo.py
index 163cec9..4ebc129 100755
--- a/imdb-lookup/imdbinfo.py
+++ b/imdb-lookup/imdbinfo.py
@@ -345,5 +345,8 @@ if __name__ == "__main__":
ids = map(lambda filename: (lambda x: (filename, x.groups()[0]) if x else None)(re.match(".*#(tt[0-9]{7}).*", filename)),
args.files[0])
args.func(args, list(filter(lambda i: i is not None, ids)))
- else:
+ elif "func" in args:
args.func(args)
+ else:
+ do_help(args)
+