aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2024-03-18 04:20:45 +0100
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2024-03-18 04:23:59 +0100
commitac167e6eef0ab0ea9e7b4741e51430d28f18b3c1 (patch)
tree1aadcea6d49ba8aa616d6e79f83de911f9f755af
parentc03e922ec4d27ac93a226cbac9faca8f6a56f53c (diff)
downloadhaunt-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-xconvert.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/convert.py b/convert.py
index eecb7a6..4608c80 100755
--- a/convert.py
+++ b/convert.py
@@ -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]