aboutsummaryrefslogtreecommitdiff
path: root/test/lint/check-rpc-mappings.py
diff options
context:
space:
mode:
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 33e49bac13..137cc82b5d 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