Skip to content

Commit 03a2d68

Browse files
author
Mason Simon
committed
Tests: add usage note to check-rpc-mappings.py
1 parent 4a3e8c5 commit 03a2d68

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/lint/check-rpc-mappings.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ def process_mapping(fname):
9090
return cmds
9191

9292
def main():
93+
if len(sys.argv) != 2:
94+
print('Usage: {} ROOT-DIR'.format(sys.argv[0]), file=sys.stderr)
95+
sys.exit(1)
96+
9397
root = sys.argv[1]
9498

9599
# Get all commands from dispatch tables

0 commit comments

Comments
 (0)