diff options
author | User Jack <jack@garcon.2.localnet.cc> | 2014-11-28 19:21:01 +0000 |
---|---|---|
committer | User Jack <jack@garcon.2.localnet.cc> | 2014-11-28 19:21:01 +0000 |
commit | de584ca6cd1c51ef0c99bfb7dd06fb4b3bed8348 (patch) | |
tree | 4b47714779e36676366a97e2ad78050dcb898780 | |
parent | 0c7044179c9540f992642be42bac884d0a5840bd (diff) | |
download | scripts-de584ca6cd1c51ef0c99bfb7dd06fb4b3bed8348.tar.gz scripts-de584ca6cd1c51ef0c99bfb7dd06fb4b3bed8348.zip |
help
-rwxr-xr-x | imdb-lookup/imdbinfo.py | 5 |
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) + |