From 03a2d680101a9fee47c6fd818df7585cfc93ac06 Mon Sep 17 00:00:00 2001 From: Mason Simon Date: Wed, 18 Jul 2018 17:47:34 -0700 Subject: [PATCH] Tests: add usage note to check-rpc-mappings.py --- test/lint/check-rpc-mappings.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/lint/check-rpc-mappings.py b/test/lint/check-rpc-mappings.py index c3cdeef580..28d08eba01 100755 --- a/test/lint/check-rpc-mappings.py +++ b/test/lint/check-rpc-mappings.py @@ -90,6 +90,10 @@ def process_mapping(fname): return cmds def main(): + if len(sys.argv) != 2: + print('Usage: {} ROOT-DIR'.format(sys.argv[0]), file=sys.stderr) + sys.exit(1) + root = sys.argv[1] # Get all commands from dispatch tables