diff options
author | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2024-03-18 04:20:45 +0100 |
---|---|---|
committer | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2024-03-18 04:23:59 +0100 |
commit | ac167e6eef0ab0ea9e7b4741e51430d28f18b3c1 (patch) | |
tree | 1aadcea6d49ba8aa616d6e79f83de911f9f755af | |
parent | c03e922ec4d27ac93a226cbac9faca8f6a56f53c (diff) | |
download | haunt-blog-ac167e6eef0ab0ea9e7b4741e51430d28f18b3c1.tar.gz haunt-blog-ac167e6eef0ab0ea9e7b4741e51430d28f18b3c1.tar.bz2 haunt-blog-ac167e6eef0ab0ea9e7b4741e51430d28f18b3c1.zip |
convert.py: Improve help.
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
-rwxr-xr-x | convert.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -25,8 +25,7 @@ import sh import sys def usage(progname): - print("{} path/to/file.html".format(progname)) - sys.exit(1) + print("Usage:\n\t{} <path/to/file.html>".format(progname)) # A "[1]" in the html becomes "[[1]][6]" in text. # As we already uses references at the end a [6] would @@ -241,6 +240,7 @@ def get_metadata(html_file_path): def main(): if len(sys.argv) != 2: usage(sys.argv[0]) + sys.exit(os.EX_USAGE) html_file_path = sys.argv[1] |