diff options
| author | jvoisin <julien.voisin@dustri.org> | 2024-02-06 19:15:04 +0100 |
|---|---|---|
| committer | Daniel Micay <daniel.micay@grapheneos.org> | 2024-04-13 13:38:41 -0400 |
| commit | 5371c75dc6a91478768b56e46fe96b54e8410df5 (patch) | |
| tree | d27e226fcc2080b601dcc5b881dabfc20ef6d8fe /process-templates | |
| parent | 7ce78d76367dc08f87c84a361e5bc7ebf7cd1864 (diff) | |
Add a meaningful error to process-templates
Diffstat (limited to 'process-templates')
| -rwxr-xr-x | process-templates | 4 |
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/"] |
