summaryrefslogtreecommitdiff
path: root/process-templates
diff options
context:
space:
mode:
authorjvoisin <julien.voisin@dustri.org>2024-02-06 19:15:04 +0100
committerDaniel Micay <daniel.micay@grapheneos.org>2024-04-13 13:38:41 -0400
commit5371c75dc6a91478768b56e46fe96b54e8410df5 (patch)
treed27e226fcc2080b601dcc5b881dabfc20ef6d8fe /process-templates
parent7ce78d76367dc08f87c84a361e5bc7ebf7cd1864 (diff)
Add a meaningful error to process-templates
Diffstat (limited to 'process-templates')
-rwxr-xr-xprocess-templates4
1 files changed, 4 insertions, 0 deletions
diff --git a/process-templates b/process-templates
index 8f24d921..d11a8fe8 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]} <path>")
+ sys.exit(1)
+
ROOT_DIR = Path(sys.argv[1])
TEMPLATE_PATH_LIST = [ROOT_DIR, "templates/"]