From 1e12fd41a1627b3388d1b78368f31d33ec610780 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Tue, 6 Feb 2024 19:15:04 +0100 Subject: [PATCH] Add a meaningful error to process-templates --- process-templates | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/process-templates b/process-templates index 8f24d921a..d11a8fe83 100755 --- a/process-templates +++ b/process-templates @@ -5,6 +5,10 @@ from pathlib import Path import os import sys +if len(sys.argv) != 2: + print(f"Usage: {sys.argv[0]} ") + sys.exit(1) + ROOT_DIR = Path(sys.argv[1]) TEMPLATE_PATH_LIST = [ROOT_DIR, "templates/"]