From 484185ec4e1329bbc42cf0c0d70f24c732b748f8 Mon Sep 17 00:00:00 2001 From: Ethan Jackson Date: Mon, 26 Sep 2011 16:12:33 -0700 Subject: [PATCH] test-jsonrpc: Help option doesn't work. The test-jsonrpc.py script didn't understand the "-h" option and threw an exception when "--help" was supplied. --- tests/test-jsonrpc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test-jsonrpc.py b/tests/test-jsonrpc.py index 781f1f47..9da3bd2d 100644 --- a/tests/test-jsonrpc.py +++ b/tests/test-jsonrpc.py @@ -166,7 +166,7 @@ def main(argv): sys.exit(1) for key, value in options: - if key in ['h', '--help']: + if key in ['-h', '--help']: usage() elif not ovs.daemon.parse_opt(key, value): sys.stderr.write("%s: unhandled option %s\n" @@ -212,7 +212,7 @@ usage: %s [OPTIONS] COMMAND [ARG...] request REMOTE METHOD PARAMS send request, print reply notify REMOTE METHOD PARAMS send notification and exit """ % (ovs.util.PROGRAM_NAME, ovs.util.PROGRAM_NAME)) - ovs.stream.usage("JSON-RPC", True, True, True) + ovs.stream.usage("JSON-RPC", True, True) ovs.daemon.usage() sys.stdout.write(""" Other options: -- 2.30.2