From ac167e6eef0ab0ea9e7b4741e51430d28f18b3c1 Mon Sep 17 00:00:00 2001 From: Denis 'GNUtoo' Carikli Date: Mon, 18 Mar 2024 04:20:45 +0100 Subject: convert.py: Improve help. Signed-off-by: Denis 'GNUtoo' Carikli --- convert.py | 4 ++-- 1 file 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{} ".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] -- cgit v1.2.3