aboutsummaryrefslogtreecommitdiff
path: root/test/lint/check-rpc-mappings.py
diff options
context:
space:
mode:
authorMason Simon <masonsimon@gmail.com>2018-07-18 17:47:34 -0700
committerMason Simon <masonsimon@gmail.com>2018-07-19 11:26:21 -0700
commit03a2d680101a9fee47c6fd818df7585cfc93ac06 (patch)
tree8135694dd6a7c7e96e387b24d39b25ffa612efb0 /test/lint/check-rpc-mappings.py
parent4a3e8c5aa6a5d8dda15a76d644b2a9f0f40cdec7 (diff)
Tests: add usage note to check-rpc-mappings.py
Diffstat (limited to 'test/lint/check-rpc-mappings.py')
-rwxr-xr-xtest/lint/check-rpc-mappings.py4
1 files changed, 4 insertions, 0 deletions
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