diff options
author | Georgios Kokolatos | 2023-01-12 10:53:08 +0000 |
---|---|---|
committer | Magnus Hagander | 2023-01-15 19:06:21 +0000 |
commit | f6cedc5b7fdbbeb50a9a10593a76ea018565e2ec (patch) | |
tree | de7b77c8f83178a33e472f326f218b792aaf1bdf /tools/deploystatic/deploystatic.py | |
parent | c88b5e6205f9a348b66310619136eea8534b722a (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-x | tools/deploystatic/deploystatic.py | 4 |
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') |