summaryrefslogtreecommitdiff
path: root/tools/deploystatic/deploystatic.py
diff options
context:
space:
mode:
authorGeorgios Kokolatos2023-01-12 10:53:08 +0000
committerMagnus Hagander2023-01-15 19:06:21 +0000
commitf6cedc5b7fdbbeb50a9a10593a76ea018565e2ec (patch)
treede7b77c8f83178a33e472f326f218b792aaf1bdf /tools/deploystatic/deploystatic.py
parentc88b5e6205f9a348b66310619136eea8534b722a (diff)
Improve help message of deploystatic
Mention early that source and destination paths should be absolute. Otherwise the user will only see it at runtime.
Diffstat (limited to 'tools/deploystatic/deploystatic.py')
-rwxr-xr-xtools/deploystatic/deploystatic.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/deploystatic/deploystatic.py b/tools/deploystatic/deploystatic.py
index 31654654..1309e335 100755
--- a/tools/deploystatic/deploystatic.py
+++ b/tools/deploystatic/deploystatic.py
@@ -292,8 +292,8 @@ def remove_unknown(knownfiles, destpath):
if __name__ == "__main__":
parser = argparse.ArgumentParser(description='Deploy jinja based static site')
- parser.add_argument('sourcepath', type=str, help='Source path')
- parser.add_argument('destpath', type=str, help='Destination path')
+ parser.add_argument('sourcepath', type=str, help='Source absolute path')
+ parser.add_argument('destpath', type=str, help='Destination absolute path')
parser.add_argument('--branch', type=str, help='Deploy directly from branch')
parser.add_argument('--templates', action='store_true', help='Deploy templates (except pages) and static instead of pages')