Commit c7093aca authored by Štěpán Balážik's avatar Štěpán Balážik Committed by Petr Špaček

rplint: add note about running rplint.py on directories

parent b7e1c770
......@@ -295,6 +295,10 @@ if __name__ == '__main__':
except IndexError:
print("usage: %s <path to rpl file>" % sys.argv[0])
sys.exit(2)
if not os.path.isfile(test_path):
print("rplint.py works on single file only.")
print("Use rplint.sh with --scenarios=<directory with rpls> to run on rpls.")
sys.exit(2)
print("Linting %s" % test_path)
t = RplintTest(test_path)
passed = t.run_checks()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment