From de584ca6cd1c51ef0c99bfb7dd06fb4b3bed8348 Mon Sep 17 00:00:00 2001 From: User Jack Date: Fri, 28 Nov 2014 19:21:01 +0000 Subject: help --- imdb-lookup/imdbinfo.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'imdb-lookup') 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) + -- cgit v1.2.1