From c28972581fb15319e79e8304c82642470abade42 Mon Sep 17 00:00:00 2001 From: James Bunton Date: Sat, 28 Feb 2009 22:42:10 +1100 Subject: [PATCH] Print usage if input parameter is missing --- encode.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/encode.py b/encode.py index f99230a..57acdfc 100755 --- a/encode.py +++ b/encode.py @@ -232,6 +232,8 @@ def parse_args(): output = os.path.splitext(os.path.basename(input))[0] elif len(args) == 2: input, output = args + else: + raise ValueError except Exception: parser.print_usage() sys.exit(1) -- 2.39.2